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:

functions.php
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.

  1. Ocean Extra icon Ocean Extra400,000+ installs apply_filters( 'butterbean_is_section_active', $is_active, $this ) includes/metabox/butterbean/inc/class-section.php:237
  2. WP Show Posts icon WP Show Posts60,000+ installs apply_filters( 'butterbean_is_section_active', $is_active, $this ) admin/butterbean/inc/class-section.php:232
  3. BoldGrid Easy SEO icon BoldGrid Easy SEO40,000+ installs apply_filters( 'butterbean_is_section_active', $is_active, $this ) includes/lib/butterbean/inc/class-section.php:232
  4. Motors icon Motors8,000+ installs apply_filters( 'butterbean_is_section_active', $is_active, $this ) includes/admin/butterbean/inc/class-section.php:232
  5. Attesa Extra icon Attesa Extra1,000+ installs apply_filters( 'butterbean_is_section_active', $is_active, $this ) metabox/butterbean/inc/class-section.php:232
  6. Ultra Companion icon Ultra Companion1,000+ installs apply_filters( 'butterbean_is_section_active', $is_active, $this ) inc/metabox/butterbean/inc/class-section.php:232
  7. Custom Content Portfolio icon Custom Content Portfolio200+ installs apply_filters( 'butterbean_is_section_active', $is_active, $this ) admin/butterbean/inc/class-section.php:232
  8. Sierra Addons icon Sierra Addons80+ installs apply_filters( 'butterbean_is_section_active', $is_active, $this ) inc/butterbean/inc/class-section.php:232
  9. LQThemes Companion icon 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.