Noptin_Automation_Rules_Table::prepare_items()
Fetch data from the database to render on view.
Source Source
File: includes/automation-rules/class-noptin-automation-rules-table.php
function prepare_items() { $per_page = 10; $columns = $this->get_columns(); $hidden = array(); $sortable = $this->get_sortable_columns(); $this->_column_headers = array( $columns, $hidden, $sortable ); $this->set_pagination_args( array( 'total_items' => $this->total, 'per_page' => $per_page, 'total_pages' => ceil( $this->total / $per_page ), ) ); }
Expand full source code Collapse full source code View on GitHub