woocommerce_product_duplicate_before_save, $child_duplicate, $child
woocommerce_product_duplicate_before_save, $child_duplicate, $child
Appears in: woocommerce.11.0.0
Hook Type: action
Displaying hooks found in version: woocommerce.11.0.0do_action('woocommerce_product_duplicate_before_save, $child_duplicate, $child') is found 1 times:
- /includes/admin/class-wc-admin-duplicate-product.php line 233
* This action can be used to modify the object further before it is created - it will be passed by reference. * * @since 3.0 */ do_action( 'woocommerce_product_duplicate_before_save', $child_duplicate, $child ); $child_duplicate->save(); } // Get new object to reflect new children. $duplicate = wc_get_product( $duplicate->get_id() );