add $product argument to `woocommerce_[variation_]set_stock_status` action

This commit is contained in:
Manos Psychogyiopoulos 2016-11-28 19:03:33 +02:00
parent 9a983261df
commit 08b81f73c6
1 changed files with 1 additions and 1 deletions

View File

@ -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.