Skip Navigation
availability:

WooCommerce Multilingual Version: 3.8.1

description:
  • Run actions after saving custom prices on the WooCommerce native product editor.
  • This action is triggered when creating or editing the original products only.
type:
action
category:
Multi-currency Feature
parameters:
add_action( 'wcml_after_save_custom_prices', 'the_callback_function', 10, 1 );

There is one parameter being passed to this action:

$product_id
(integer) The ID of original product.
hook example usage:

Example

add_action( 'wcml_after_save_custom_prices', 'my_custom_action', 10, 1 );

function my_custom_action( $product_id ) {

	// my custom action

}