WordPress filter hook · part of WordPress core
edit_tags_per_page
A WordPress core filter that 3 plugins also fire themselves, running on 80K+ sites between them.
“Filters the number of terms displayed per page for the Tags list table.”
How to use edit_tags_per_page
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'edit_tags_per_page', function( $tags_per_page ) {
// Change $tags_per_page here.
return $tags_per_page;
}, 10, 1 );Argument names come from Customer Reviews for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
3 plugins that fire edit_tags_per_page
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Customer Reviews for WooCommerce80,000+ installs
apply_filters( 'edit_tags_per_page', $tags_per_page )includes/tags/class-cr-tags-list-table.php:84 -
Massoftind Custom Fields & Field Builder10+ installs
apply_filters( 'edit_tags_per_page', 20 )helpers/ContentOrder/ContentOrderApplier.php:269 -
FreexyaFewer than 10 installs
apply_filters( 'edit_tags_per_page', $per_page )modules/Shortcuts/Ordering.php:313
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.