wcml_after_duplicate_product

The WooCommerce Multilingual wcml after duplicate product hook.

Description

do_action( 'wcml_after_duplicate_product', (unknown) $new_id, (unknown) $post_to_duplicate ); 

Parameters (2)

0. $new_id (unknown)
The new id.
1. $post_to_duplicate (unknown)
The post to duplicate.

Usage

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

Defined (2)

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

/inc/translation-editor/class-wcml-wc-admin-duplicate-product.php  
  1. do_action( 'wcml_after_duplicate_product' , $new_id, $post_to_duplicate ); 
  1. do_action( 'wcml_after_duplicate_product' , $new_id, $post_to_duplicate );