Filter hook 'edit_tags_per_page'

in WP Core File wp-admin/includes/class-wp-terms-list-table.php at line 90

View Source

edit_tags_per_page

Filter Hook
Description
Filters the number of terms displayed per page for the Tags list table.

Hook Information

File Location wp-admin/includes/class-wp-terms-list-table.php View on GitHub
Hook Type Filter
Line Number 90

Hook Parameters

Type Name Description
int $tags_per_page Number of tags to be displayed. Default 20.

Usage Examples

Basic Usage
<?php
// Hook into edit_tags_per_page
add_filter('edit_tags_per_page', 'my_custom_filter', 10, 1);

function my_custom_filter($tags_per_page) {
    // Your custom filtering logic here
    return $tags_per_page;
}

Source Code Context

wp-admin/includes/class-wp-terms-list-table.php:90 - How this hook is used in WordPress core
<?php
  85  			 *
  86  			 * @since 2.8.0
  87  			 *
  88  			 * @param int $tags_per_page Number of tags to be displayed. Default 20.
  89  			 */
  90  			$tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );
  91  
  92  			/**
  93  			 * Filters the number of terms displayed per page for the Tags list table.
  94  			 *
  95  			 * @since 2.7.0

PHP Documentation

<?php
/**
			 * Filters the number of terms displayed per page for the Tags list table.
			 *
			 * @since 2.8.0
			 *
			 * @param int $tags_per_page Number of tags to be displayed. Default 20.
			 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/includes/class-wp-terms-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.