WP_List_Table::get_pagination_arg( string $key )

Access the pagination args.


Description Description


Parameters Parameters

$key

(string) (Required) Pagination argument to retrieve. Common values include 'total_items', 'total_pages', 'per_page', or 'infinite_scroll'.


Top ↑

Return Return

(int) Number of items that correspond to the given pagination argument.


Top ↑

Source Source

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 ];
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.