Coding standards
This commit is contained in:
parent
e3dd09d021
commit
0fa582a25f
|
@ -659,12 +659,12 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple
|
|||
if ( ! empty( $variation_ids ) ) {
|
||||
foreach ( $variation_ids as $variation_id ) {
|
||||
if ( $force_delete ) {
|
||||
do_action( 'woocommerce_before_delete_product_variation' , $variation_id );
|
||||
do_action( 'woocommerce_before_delete_product_variation', $variation_id );
|
||||
wp_delete_post( $variation_id, true );
|
||||
do_action( 'woocommerce_delete_product_variation' , $variation_id );
|
||||
do_action( 'woocommerce_delete_product_variation', $variation_id );
|
||||
} else {
|
||||
wp_trash_post( $variation_id );
|
||||
do_action( 'woocommerce_trash_product_variation' , $variation_id );
|
||||
do_action( 'woocommerce_trash_product_variation', $variation_id );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue