WordPress filter hook
category_archive_meta
Fired by 3 WordPress plugins, running on 21K+ sites between them.
How to use category_archive_meta
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( 'category_archive_meta', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from Event Organiser's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
3 plugins that fire category_archive_meta
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Event Organiser20,000+ installs
apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $tag_description . '</div>' )includes/class-eo-theme-compatability.php:167 -
UX Flat1,000+ installs
apply_filters( 'category_archive_meta', '<div class="row"><div class="large-12 col"><div class="taxonomy-description">' . $category_description . '</div></div></div>' )inc/init.php:493 -
Theme Bakery10+ installs
apply_filters( 'category_archive_meta', '<div class="taxonomy-description">' . $category_description . '</div>' )_s/archive.php:59
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.