users_per_page filter-hookWP 2.9.0

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 filter names include:

This is one of the variants of the dynamic hook (option)

Usage

add_filter( 'users_per_page', 'wp_kama_users_per_page_filter' );

/**
 * Function for `users_per_page` filter-hook.
 * 
 * @param int $per_page Number of items to be displayed.
 *
 * @return int
 */
function wp_kama_users_per_page_filter( $per_page ){

	// filter...
	return $per_page;
}
$per_page(int)
Number of items to be displayed.
Default: 20

Changelog

Since 2.9.0 Introduced.

Where the hook is called

WP_List_Table::get_items_per_page()
users_per_page
wp-admin/includes/class-wp-list-table.php 1007
return (int) apply_filters( "{$option}", $per_page );

Where the hook is used in WordPress

Usage not found.