WPML
SignaturePHP
add_action( 'wcml_before_sync_product_data', 'the_callback_function', 10, 3 );

Description

Arguments

There are three parameters being passed to this action:

  • $original_product_idinteger

    The ID of original product.
  • $translated_product_idinteger

    The ID of translated product.
  • $target_languagestring

    The language code of translated product.

Example Usage

PHP
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

}