edit_tags_per_page
Filters the number of terms displayed per page for the Tags list table.
Usage
add_filter( 'edit_tags_per_page', 'wp_kama_edit_tags_per_page_filter' ); /** * Function for `edit_tags_per_page` filter-hook. * * @param int $tags_per_page Number of tags to be displayed. * * @return int */ function wp_kama_edit_tags_per_page_filter( $tags_per_page ){ // filter... return $tags_per_page; }
- $tags_per_page(int)
- Number of tags to be displayed.
Default: 20
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
wp-admin/includes/class-wp-terms-list-table.php 90
$tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );