wcml_after_duplicate_product_post_meta

The WooCommerce Multilingual wcml after duplicate product post meta hook.

Description

do_action( 'wcml_after_duplicate_product_post_meta', (unknown) $original_product_id, (unknown) $trnsl_product_id, (unknown) $data ); 

Parameters (3)

0. $original_product_id (unknown)
The original product id.
1. $trnsl_product_id (unknown)
The trnsl product id.
2. $data (unknown)
The data.

Usage

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

Defined (1)

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

/inc/translation-editor/class-wcml-synchronize-product-data.php  
  1. do_action( 'wcml_after_duplicate_product_post_meta', $original_product_id, $trnsl_product_id, $data );