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:
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.
-
Ocean Extra400,000+ installs
do_action( 'butterbean_register', $this, $post_type )includes/metabox/butterbean/class-butterbean.php:245 -
WP Show Posts60,000+ installs
do_action( 'butterbean_register', $this, $post_type )admin/butterbean/class-butterbean.php:231 -
BoldGrid Easy SEO40,000+ installs
do_action( 'butterbean_register', $this, $post_type )includes/lib/butterbean/class-butterbean.php:231 -
Motors8,000+ installs
do_action( 'butterbean_register', $this, $post_type )includes/admin/butterbean/class-butterbean.php:253 -
Attesa Extra1,000+ installs
do_action( 'butterbean_register', $this, $post_type )metabox/butterbean/class-butterbean.php:240 -
Ultra Companion1,000+ installs
do_action( 'butterbean_register', $this, $post_type )inc/metabox/butterbean/class-butterbean.php:231 -
Custom Content Portfolio200+ installs
do_action( 'butterbean_register', $this, $post_type )admin/butterbean/class-butterbean.php:231 -
Sierra Addons80+ installs
do_action( 'butterbean_register', $this, $post_type )inc/butterbean/class-butterbean.php:231 -
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.