tagsperpage
Deprecated from version 2.8.0. It is no longer supported and can be removed in future releases. See edit_tags_per_page.
Filters the number of terms displayed per page for the Tags list table.
Usage
add_filter( 'tagsperpage', 'wp_kama_tagsperpage_filter', 10, 2 ); /** * Function for `tagsperpage` filter-hook. * * @param int $tags_per_page Number of tags to be displayed. * @param $string * * @return int */ function wp_kama_tagsperpage_filter( $tags_per_page, $string ){ // filter... return $tags_per_page; }
- $tags_per_page(int)
- Number of tags to be displayed.
Default: 20 - $string
- -
Changelog
Since 2.7.0 | Introduced. |
Deprecated since 2.8.0 | Use {@see 'edit_tags_per_page'} instead. |
Where the hook is called
wp-admin/includes/class-wp-terms-list-table.php 100
$tags_per_page = apply_filters_deprecated( 'tagsperpage', array( $tags_per_page ), '2.8.0', 'edit_tags_per_page' );