WordPress action hook
berocket_apl_set_label
Fired by 5 WordPress plugins, running on 325K+ sites between them.
How to use berocket_apl_set_label
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( 'berocket_apl_set_label', function( $arg1, $productID ) {
// Your code runs here.
}, 10, 2 );Argument names come from Unlimited Elements for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
5 plugins that fire berocket_apl_set_label
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Unlimited Elements for Elementor300,000+ installs
do_action( 'berocket_apl_set_label', true, $productID )provider/woocommerce_integrate.class.php:1150 -
Advanced Product Labels for WooCommerce10,000+ installs
do_action( 'berocket_apl_set_label', true, $variation->get_id() )addons/labels_for_variations/labels_for_variations_include.php:61 -
Variation Images Gallery for WooCommerce10,000+ installs
do_action( 'berocket_apl_set_label', true, $product )app/Controllers/ThemeSupport.php:45 -
WPB Product Slider for WooCommerce4,000+ installs
do_action( 'berocket_apl_set_label', true )inc/wpb-wps-shortcodes.php:152 -
Unlimited Elements Blocks Library500+ installs
do_action( 'berocket_apl_set_label', true, $productID )provider/woocommerce_integrate.class.php:1150
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.