- availability:
-
WooCommerce Multilingual Version: 3.6.3
- description:
-
- Run actions before WCML syncs original products to their translated products.
- This action is called before wcml_before_sync_product_data.
- 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 }