woocommerce_low_stock

woocommerce_low_stock

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_low_stock') is found 2 times:

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

    * @since 4.9
    *
    * @param int $product The product whose stock is about to change.
    */
    do_action( ‘woocommerce_low_stock’, wc_get_product( $change[‘product’]->get_id() ) );
    }

    if ( $change[‘to’] < 0 ) { /** * Action fires when an item in an order is backordered. * [/php]

  • /includes/wc-stock-functions.php line 333
    		 * @since 3.0
    		 *
    		 * @param WC_Product $product The product whose stock quantity has changed.
    		 */
    		do_action( 'woocommerce_low_stock', $product );
    	}
    }
    
    /**
     * Increase stock levels for items within an order.
     *