wcml_after_save_custom_prices

The WooCommerce Multilingual wcml after save custom prices hook.

Description

do_action( 'wcml_after_save_custom_prices', (unknown) $post_id, (unknown) $product_price, (unknown) $custom_prices, (unknown) $code ); 

Parameters (4)

0. $post_id (unknown)
The post id.
1. $product_price (unknown)
The product price.
2. $custom_prices (unknown)
The custom prices.
3. $code (unknown)
The code.

Usage

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

Defined (1)

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

/inc/currencies/class-wcml-custom-prices.php  
  1. do_action( 'wcml_after_save_custom_prices', $post_id, $product_price, $custom_prices, $code );