woocommerce_no_stock

woocommerce_no_stock

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_no_stock') is found 2 times:

  • /includes/wc-stock-functions.php line 259

    * @since 4.9
    *
    * @param int $product The variation whose stock is about to change.
    */
    do_action( ‘woocommerce_no_stock’, wc_get_product( $change[‘product’]->get_id() ) );
    } elseif ( $change[‘to’] <= $low_stock_amount ) { /** * Action to signal that the value of 'stock_quantity' for a product is about to change. * * @since 4.9 * [/php]

  • /includes/wc-stock-functions.php line 324

    * @since 3.0
    *
    * @param WC_Product $product The product whose stock quantity has changed.
    */
    do_action( ‘woocommerce_no_stock’, $product );
    } elseif ( $stock_quantity <= $low_stock_amount ) { /** * Action fires when a product's stock quantity reaches the "low stock" threshold. * * @since 3.0 * [/php]