Skip Navigation
availability:

WooCommerce Multilingual Version: 3.6.3

description:
type:
action
category:
Updating Content
parameters:
add_action( 'wcml_before_sync_product', 'the_callback_function', 10, 2 );

There are two parameters being passed to this action:

$original_product_id
(integer) The ID of original product.
$translated_product_id
(integer) The ID of translated product.
hook example usage:

Example

add_action( 'wcml_before_sync_product', 'my_custom_action', 10, 2 );

function my_custom_action( $original_product_id, $translated_product_id ) {

	// my custom action

}