woocommerce_product_duplicate_before_save action-hook . WC 3.0
This action can be used to modify the object further before it is created - it will be passed by reference.
Usage
add_action( 'woocommerce_product_duplicate_before_save', 'action_function_name_8511', 10, 2 ); function action_function_name_8511( $duplicate, $product ){ // action... }
- $duplicate
- -
- $product
- -
Changelog
Since 3.0 | Introduced. |
Where the hook is called
woocommerce_product_duplicate_before_save
woocommerce/includes/admin/class-wc-admin-duplicate-product.php 175
do_action( 'woocommerce_product_duplicate_before_save', $duplicate, $product );
woocommerce/includes/admin/class-wc-admin-duplicate-product.php 208
do_action( 'woocommerce_product_duplicate_before_save', $child_duplicate, $child );