From 7a16b762de1c7fd990877fd37470490590007bfc Mon Sep 17 00:00:00 2001 From: Grant Date: Thu, 15 Feb 2024 17:06:09 +0900 Subject: [PATCH] declare incompatibility with block checkout --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.php b/index.php index 7fcf6c3..64c1b69 100755 --- a/index.php +++ b/index.php @@ -6,8 +6,14 @@ Version: 3.0.8 Author: KOMOJU Author URI: https://komoju.com +WC tested up to: 8.5 */ +add_action('before_woocommerce_init', function() { + if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) { + \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('cart_checkout_blocks', __FILE__, false); + } +}); add_action('plugins_loaded', 'woocommerce_komoju_init', 0); function woocommerce_komoju_init()