WPML
add_action( 'wcml_after_duplicate_product_post_meta', 'the_callback_function', 10, 3 );
Type
action
Category
Updating Content
WooCommerce Multilingual Version
3.5

Description

Run actions after the post meta fields are being set for a duplicated product.

Arguments

There are three parameters being passed to this action:
$original_product_id
(integer) The ID of original product.
$translated_product_id
(integer) The ID of translated product.
$data
(array) The original product data.

Example usage

Example
add_action( 'wcml_after_duplicate_product_post_meta', 'my_custom_action', 10, 3 );

function my_custom_action( $original_product_id, $duplicated_product_id, $data ) {

	// my custom action

}

wcml_update_extra_fields, wcml_js_lock_fields_ids, wcml_js_lock_fields_input_names, wcml_js_lock_fields_classes, wcml_before_sync_product, wcml_before_sync_product_data

All 7 Updating Content hooks →