white space
This commit is contained in:
parent
98b0fcbdff
commit
7909c3ca7c
|
@ -570,7 +570,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
|
||||||
break;
|
break;
|
||||||
case 'stock_quantity':
|
case 'stock_quantity':
|
||||||
// Fire actions to let 3rd parties know the stock is about to be changed.
|
// Fire actions to let 3rd parties know the stock is about to be changed.
|
||||||
if ( $product->is_type('variation' ) ) {
|
if ( $product->is_type( 'variation' ) ) {
|
||||||
do_action( 'woocommerce_variation_before_set_stock', $product );
|
do_action( 'woocommerce_variation_before_set_stock', $product );
|
||||||
} else {
|
} else {
|
||||||
do_action( 'woocommerce_product_before_set_stock', $product );
|
do_action( 'woocommerce_product_before_set_stock', $product );
|
||||||
|
|
Loading…
Reference in New Issue