WordPress action hook
mphb-templates/blocks/attribute/after
Fired by 3 WordPress plugins, running on 21K+ sites between them.
How to use mphb-templates/blocks/attribute/after
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( 'mphb-templates/blocks/attribute/after', function( $attribute, $custom_attribute ) {
// Your code runs here.
}, 10, 2 );Argument names come from MotoPress Hotel Booking for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
3 plugins that fire mphb-templates/blocks/attribute/after
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
MotoPress Hotel Booking Styles & Templates10,000+ installs
do_action( 'mphb-templates/blocks/attribute/after', $attribute, $customAttribute )includes/template-editor/includes/blocks/attribute.php:143 -
MotoPress Hotel Booking for Elementor10,000+ installs
do_action( 'mphb-templates/blocks/attribute/after', $attribute, $custom_attribute )widgets/accommodation/attribute-widget.php:151 -
MotoPress Hotel Booking for Divi1,000+ installs
do_action( 'mphb-templates/blocks/attribute/after', $attribute, $custom_attribute )src/renderers.php:915
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.