yit_before_metabox_option_<urldecode><label>

The YITH WooCommerce Compare yit before metabox option urldecode label hook.

Description

do_action( 'yit_before_metabox_option_<urldecode><label>' ); 

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'yit_before_metabox_option_{$urldecode}{$label}' ); 
The following example is for adding a hook callback.
  1. // define the yit_before_metabox_option_<urldecode><label> callback 
  2. function action_yit_before_metabox_option_urldecodelabel( ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "yit_before_metabox_option_{$urldecode}{$label}", 'action_yit_before_metabox_option_urldecodelabel', 10, 0 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "yit_before_metabox_option_{$urldecode}{$label}", 'action_yit_before_metabox_option_urldecodelabel', 10, 0 ); 

Defined (1)

The action is defined in the following location(s).

/plugin-fw/templates/metaboxes/tab.php  
  1. <?php do_action( 'yit_before_metabox_option_' . urldecode( sanitize_title( $tab['label'] ) ) ); ?>