You appear to be a bot. Output may be restricted
Description
Determine pagination parameters
Before calling get_posts we need to know which page we're displaying so that we only return the relevant rows We need to know the pagination stuff here so that we load the correct set of posts. We just need to know posts_per_page and the page number ( 'paged' ) but in order to perform pagination we need to use WP_Query which enables us to find the total number of posts
Usage
$array = OIK_Clone_List_Table::determine_pagination( $atts );
Parameters
- $atts
- ( array ) required – parameters to be passed to the routine that accesses the content
Returns
array $atts – updated atts array
Source
File name: oik-clone/admin/class-oik-clone-list-table.php
Lines:
1 to 7 of 7
function determine_pagination( $atts ) { $page = bw_array_get( $_REQUEST, "paged", 1 ); $atts['paged'] = $page; $atts['posts_per_page'] = $this->get_items_per_page( "oik_clone_per_page" ); $atts['bw_query'] = new WP_Query(); return( $atts ); }