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

do_action('woocommerce_variation_set_stock_status') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 870
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
         * @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
         *