wc_price_based_country_before_product_variable_options_pricing

The WooCommerce Product Price Based on Countries wc price based country before product variable options pricing hook.

Description

do_action( 'wc_price_based_country_before_product_variable_options_pricing', (unknown) $key, (unknown) $value_currency, (unknown) $loop, (unknown) $variation ); 

Parameters (4)

0. $key (unknown)
The key.
1. $value_currency (unknown)
The value currency.
2. $loop (unknown)
The loop.
3. $variation (unknown)
The variation.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wc_price_based_country_before_product_variable_options_pricing', $key, $value_currency, $loop, $variation ); 
The following example is for adding a hook callback.
  1. // define the wc_price_based_country_before_product_variable_options_pricing callback 
  2. function action_wc_price_based_country_before_product_variable_options_pricing( $key, $value_currency, $loop, $variation ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wc_price_based_country_before_product_variable_options_pricing', 'action_wc_price_based_country_before_product_variable_options_pricing', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wc_price_based_country_before_product_variable_options_pricing', 'action_wc_price_based_country_before_product_variable_options_pricing', 10, 4 ); 

Defined (1)

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

/includes/admin/class-wcpbc-admin-product-data.php  
  1. <?php do_action('wc_price_based_country_before_product_variable_options_pricing', $key, $value['currency'], $loop, $variation ); ?>