woocommerce_order_hold_stock_minutes

woocommerce_order_hold_stock_minutes

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.1.2

apply_filters('woocommerce_order_hold_stock_minutes') is found 1 times:

  • /src/Checkout/Helpers/ReserveStock.php line 80
    		 *
    		 * @param int       $minutes How long to reserve stock for the order in minutes. Defaults to woocommerce_hold_stock_minutes or 10 if block checkout entry.
    		 * @param \WC_Order $order Order object.
    		 */
    		$minutes = (int) apply_filters( 'woocommerce_order_hold_stock_minutes', $minutes, $order );
    
    		if ( ! $minutes || ! $this->is_enabled() ) {
    			return;
    		}
    
    		$held_stock_notes = array();