WP_List_Table::get_pagination_arg() – Access the pagination args.
You appear to be a bot. Output may be restricted
Description
Access the pagination args.
Usage
$int = WP_List_Table::get_pagination_arg( $key );
Parameters
- $key
- ( string ) required – Pagination argument to retrieve. Common values include 'total_items', 'total_pages', 'per_page', or 'infinite_scroll'.
Returns
int Number of items that correspond to the given pagination argument.
Source
File name: wordpress/wp-admin/includes/class-wp-list-table.php
Lines:
1 to 11 of 11
public function get_pagination_arg( $key ) { if ( 'page' === $key ) { return $this->WP_List_Table::get_pagenum(); } if ( isset( $this->_pagination_args[ $key ] ) ) { return $this->_pagination_args[ $key ]; } return 0; }