WordPress at a glance
function is not described

WP_List_Table::get_items_per_page() WP 3.1.0

Get number of items to display on a single page

This is a method of the class: WP_List_Table

Hooks from the method
Return

Int.

Usage

$WP_List_Table = new WP_List_Table();
$var = $WP_List_Table->get_items_per_page( $option, $default );
$option(string) (required)
$default(int)

Default: 20

Changelog

Since 3.1.0 Introduced.

Code of WP List Table::get items per page: wp-admin/includes/class-wp-list-table.php WP 5.4.2

<?php
protected function get_items_per_page( $option, $default = 20 ) {
	$per_page = (int) get_user_option( $option );
	if ( empty( $per_page ) || $per_page < 1 ) {
		$per_page = $default;
	}

	/**
	 * Filters the number of items to be displayed on each page of the list table.
	 *
	 * The dynamic hook name, $option, refers to the `per_page` option depending
	 * on the type of list table in use. Possible values include: 'edit_comments_per_page',
	 * 'sites_network_per_page', 'site_themes_network_per_page', 'themes_network_per_page',
	 * 'users_network_per_page', 'edit_post_per_page', 'edit_page_per_page',
	 * 'edit_{$post_type}_per_page', etc.
	 *
	 * @since 2.9.0
	 *
	 * @param int $per_page Number of items to be displayed. Default 20.
	 */
	return (int) apply_filters( "{$option}", $per_page );
}