From 3bd34184e414de21b8884d21fd861ebc843e9972 Mon Sep 17 00:00:00 2001 From: vedanshujain Date: Thu, 12 Dec 2019 15:46:39 +0530 Subject: [PATCH] Fixed bool error on when to disable feature --- includes/wc-stock-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-stock-functions.php b/includes/wc-stock-functions.php index e3e3d0f61e7..76bb38e31a8 100644 --- a/includes/wc-stock-functions.php +++ b/includes/wc-stock-functions.php @@ -309,7 +309,7 @@ function wc_get_held_stock_quantity( $product, $exclude_order_id = 0 ) { * @since 3.9.0 * @param bool $enabled Default to true. */ - if ( ! apply_filters( 'woocommerce_hold_stock_for_checkout', true ) ) { + if ( apply_filters( 'woocommerce_hold_stock_for_checkout', true ) ) { /** * DOES NOT SUPPORT `exclude_order_id` param, which was primarily being used to exclude the current order! * While creating an order during checkout flow, this logic relies on the fact that order is not yet saved and therefore will be excluded.