WordPress filter hook
register_taxonomy_template_cat_args
Fired by 2 WordPress plugins, running on 20K+ sites between them.
How to use register_taxonomy_template_cat_args
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( 'register_taxonomy_template_cat_args', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from Post Grid's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire register_taxonomy_template_cat_args
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Post Grid20,000+ installs
apply_filters( 'register_taxonomy_template_cat_args', array( 'hierarchical' => true, 'show_admin_column' => true, 'update_count_callback' => '_update_post_term_count', 'label' => $plural, 'labels' => array( 'name' => $plural, 'singular_name' => $singular, 'menu_name' => ucwords($plural), 'search_items' => sprintf(__('Search %s', 'post-grid'), $plural), 'all_items' => sprintf(__('All %s', 'post-grid'), $plural), 'parent_item' => sprintf(__('Parent ... )includes/classes/class-post-types.php:477 -
ComboBlocks100+ installs
apply_filters( 'register_taxonomy_template_cat_args', array( 'hierarchical' => true, 'show_admin_column' => true, 'update_count_callback' => '_update_post_term_count', 'label' => $plural, 'labels' => array( 'name' => $plural, 'singular_name' => $singular, 'menu_name' => ucwords($plural), 'search_items' => sprintf(__('Search %s', 'combo-blocks'), $plural), 'all_items' => sprintf(__('All %s', 'combo-blocks'), $plural), 'parent_item' => sprintf(__('P... )includes/classes/class-post-types.php:284
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.