add_action( 'wcml_before_sync_product_data', 'the_callback_function', 10, 3 );
Description
- This action is called after wcml_before_sync_product.
Arguments
There are three parameters being passed to this action:
$original_product_idintegerThe ID of original product.$translated_product_idintegerThe ID of translated product.$target_languagestringThe language code of translated product.
Example Usage
add_action( 'wcml_before_sync_product_data', 'my_custom_action', 10, 3 ); function my_custom_action( $original_product_id, $translated_product_id, $target_language ) { // my custom action }