wc_price_based_country_before_product_options_pricing

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

Description

do_action( 'wc_price_based_country_before_product_options_pricing', (unknown) $id_prefix, (unknown) $value_currency ); 

Parameters (2)

0. $id_prefix (unknown)
The id prefix.
1. $value_currency (unknown)
The value currency.

Usage

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

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_options_pricing', $_id_prefix, $value['currency'] ); ?>