add $product argument to `woocommerce_[variation_]set_stock_status` action
This commit is contained in:
parent
9a983261df
commit
08b81f73c6
|
@ -424,7 +424,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
|
|||
}
|
||||
|
||||
if ( in_array( 'stock_status', $updated_props ) ) {
|
||||
do_action( $product->is_type( 'variation' ) ? 'woocommerce_variation_set_stock_status' : 'woocommerce_product_set_stock_status' , $product->get_id(), $product->get_stock_status() );
|
||||
do_action( $product->is_type( 'variation' ) ? 'woocommerce_variation_set_stock_status' : 'woocommerce_product_set_stock_status' , $product->get_id(), $product->get_stock_status(), $product );
|
||||
}
|
||||
|
||||
// Update extra data associated with the product.
|
||||
|
|
Loading…
Reference in New Issue