wcml_before_sync_product

The WooCommerce Multilingual wcml before sync product hook.

Description

do_action( 'wcml_before_sync_product', (unknown) $original_product_id, (unknown) $post_id ); 

Parameters (2)

0. $original_product_id (unknown)
The original product id.
1. $post_id (unknown)
The post id.

Usage

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

Defined (1)

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', $original_product_id, $post_id );