WordPress filter hook
butterbean_is_section_active
Fired by 9 WordPress plugins, running on 510K+ sites between them.
How to use butterbean_is_section_active
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'butterbean_is_section_active', function( $is_active, $object ) {
// Change $is_active here.
return $is_active;
}, 10, 2 );Argument names come from Ocean Extra's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
9 plugins that fire butterbean_is_section_active
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Ocean Extra400,000+ installs
apply_filters( 'butterbean_is_section_active', $is_active, $this )includes/metabox/butterbean/inc/class-section.php:237 -
WP Show Posts60,000+ installs
apply_filters( 'butterbean_is_section_active', $is_active, $this )admin/butterbean/inc/class-section.php:232 -
BoldGrid Easy SEO40,000+ installs
apply_filters( 'butterbean_is_section_active', $is_active, $this )includes/lib/butterbean/inc/class-section.php:232 -
Motors8,000+ installs
apply_filters( 'butterbean_is_section_active', $is_active, $this )includes/admin/butterbean/inc/class-section.php:232 -
Attesa Extra1,000+ installs
apply_filters( 'butterbean_is_section_active', $is_active, $this )metabox/butterbean/inc/class-section.php:232 -
Ultra Companion1,000+ installs
apply_filters( 'butterbean_is_section_active', $is_active, $this )inc/metabox/butterbean/inc/class-section.php:232 -
Custom Content Portfolio200+ installs
apply_filters( 'butterbean_is_section_active', $is_active, $this )admin/butterbean/inc/class-section.php:232 -
Sierra Addons80+ installs
apply_filters( 'butterbean_is_section_active', $is_active, $this )inc/butterbean/inc/class-section.php:232 -
LQThemes Companion40+ installs
apply_filters( 'butterbean_is_section_active', $is_active, $this )inc/metabox/butterbean/inc/class-section.php:232
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.