WordPress filter hook
post_stati
Fired by 3 WordPress plugins, running on 60K+ sites between them.
How to use post_stati
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( 'post_stati', function( $post_stati ) {
// Change $post_stati here.
return $post_stati;
}, 10, 1 );Argument names come from PublishPress Taxonomies's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
3 plugins that fire post_stati
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
PublishPress Taxonomies40,000+ installs
apply_filters( 'post_stati', $post_stati )inc/class.admin.mass.php:480 -
Cornerstone20,000+ installs
apply_filters( 'post_stati', $post_stati )includes/class.content_utilities.php:616 -
Quick Slugs10+ installs
apply_filters( 'post_stati', $post_stati )quick-slugs.php:120
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.