edit_categories_per_page filter-hookWP 2.8.0

Filters the number of terms displayed per page for the Categories list table.

Usage

add_filter( 'edit_categories_per_page', 'wp_kama_edit_categories_per_page_filter' );

/**
 * Function for `edit_categories_per_page` filter-hook.
 * 
 * @param int $tags_per_page Number of categories to be displayed.
 *
 * @return int
 */
function wp_kama_edit_categories_per_page_filter( $tags_per_page ){

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

Changelog

Since 2.8.0 Introduced.

Where the hook is called

WP_Terms_List_Table::prepare_items()
edit_categories_per_page
WP_Screen::render_per_page_options()
edit_categories_per_page
wp-admin/includes/class-wp-terms-list-table.php 109
$tags_per_page = apply_filters( 'edit_categories_per_page', $tags_per_page );
wp-admin/includes/class-wp-screen.php 1261
$per_page = apply_filters( 'edit_categories_per_page', $per_page );

Where the hook is used in WordPress

Usage not found.