WordPress action hook

butterbean_register

Fired by 9 WordPress plugins, running on 510K+ sites between them.

How to use butterbean_register

It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'butterbean_register', function( $object, $post_type ) {
	// Your code runs here.
}, 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_register

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 do_action( 'butterbean_register', $this, $post_type ) includes/metabox/butterbean/class-butterbean.php:245
  2. WP Show Posts icon WP Show Posts60,000+ installs do_action( 'butterbean_register', $this, $post_type ) admin/butterbean/class-butterbean.php:231
  3. BoldGrid Easy SEO icon BoldGrid Easy SEO40,000+ installs do_action( 'butterbean_register', $this, $post_type ) includes/lib/butterbean/class-butterbean.php:231
  4. Motors icon Motors8,000+ installs do_action( 'butterbean_register', $this, $post_type ) includes/admin/butterbean/class-butterbean.php:253
  5. Attesa Extra icon Attesa Extra1,000+ installs do_action( 'butterbean_register', $this, $post_type ) metabox/butterbean/class-butterbean.php:240
  6. Ultra Companion icon Ultra Companion1,000+ installs do_action( 'butterbean_register', $this, $post_type ) inc/metabox/butterbean/class-butterbean.php:231
  7. Custom Content Portfolio icon Custom Content Portfolio200+ installs do_action( 'butterbean_register', $this, $post_type ) admin/butterbean/class-butterbean.php:231
  8. Sierra Addons icon Sierra Addons80+ installs do_action( 'butterbean_register', $this, $post_type ) inc/butterbean/class-butterbean.php:231
  9. LQThemes Companion icon LQThemes Companion40+ installs do_action( 'butterbean_register', $this, $post_type ) inc/metabox/butterbean/class-butterbean.php:231

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.