woocommerce_variation_set_stock_status

woocommerce_variation_set_stock_status

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

do_action('woocommerce_variation_set_stock_status') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 870
    				 * @param int        $product_id   The ID of the variation.
    				 * @param string     $stock_status The new stock status of the variation.
    				 * @param WC_Product $product      The product object.
    				 */
    				do_action( 'woocommerce_variation_set_stock_status', $product->get_id(), $product->get_stock_status(), $product );
    			} else {
    				/**
    				 * Action to signal that the `stock_status` for a product has changed.
    				 *
    				 * @since 3.0
    				 *