Uses
| Uses | Description |
|---|---|
| wp-admin/includes/class-wp-list-table.php: WP_List_Table::get_pagenum() | Gets the current page number. |
Access the pagination args.
(string) (Required) Pagination argument to retrieve. Common values include 'total_items', 'total_pages', 'per_page', or 'infinite_scroll'.
(int) Number of items that correspond to the given pagination argument.
File: wp-admin/includes/class-wp-list-table.php
public function get_pagination_arg( $key ) {
if ( 'page' === $key ) {
return $this->get_pagenum();
}
if ( isset( $this->_pagination_args[ $key ] ) ) {
return $this->_pagination_args[ $key ];
}
} | Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_table/get_pagination_arg