WordPress action hook
rwmb_field_registered
Fired by 6 WordPress plugins, running on 502K+ sites between them.
How to use rwmb_field_registered
It's an action: your callback runs at that point and receives 3 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'rwmb_field_registered', function( $field, $type, $object_type ) {
// Your code runs here.
}, 10, 3 );Argument names come from Meta Box's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
6 plugins that fire rwmb_field_registered
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Meta Box500,000+ installs
do_action( 'rwmb_field_registered', $field, $type, $object_type )inc/field-registry.php:31 -
Disclaimer Popup1,000+ installs
do_action( 'rwmb_field_registered', $field, $type, $object_type )assets/meta-box/inc/field-registry.php:30 -
WP Restaurant Price List400+ installs
do_action( 'rwmb_field_registered', $field, $type, $object_type )assets/meta-box/inc/field-registry.php:40 -
Kata Plus300+ installs
do_action( 'rwmb_field_registered', $field, $type, $object_type )includes/meta-box/meta-box-plugin/inc/field-registry.php:30 -
Crucial Real Estate100+ installs
do_action( 'rwmb_field_registered', $field, $type, $object_type )includes/libraries/meta-box/inc/field-registry.php:30 -
Custom Credit Card Icons for Easy Digital Downloads10+ installs
do_action( 'rwmb_field_registered', $field, $type, $object_type )assets/meta-box/inc/field-registry.php:40
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.