wcml_before_sync_product_data

The WooCommerce Multilingual wcml before sync product data hook.

Description

do_action( 'wcml_before_sync_product_data', (unknown) $original_product_id, (unknown) $tr_product_id, (unknown) $lang ); 

Parameters (3)

0. $original_product_id (unknown)
The original product id.
1. $tr_product_id (unknown)
The tr product id.
2. $lang (unknown)
The lang.

Usage

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

Defined (2)

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

/inc/translation-editor/class-wcml-synchronize-product-data.php  
  1. do_action( 'wcml_before_sync_product_data', $original_product_id, $tr_product_id, $lang ); 
/inc/translation-editor/class-wcml-editor-ui-product-job.php  
  1. do_action( 'wcml_before_sync_product_data', $this->product_id, $tr_product_id, $this->get_target_language() );