From 9e4162d8fcce4080f3a8b3e73db8f309a560e32a Mon Sep 17 00:00:00 2001 From: Grant Date: Fri, 16 Feb 2024 12:23:29 +0900 Subject: [PATCH] refactor --- index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 21e5dc7..6418179 100755 --- a/index.php +++ b/index.php @@ -9,10 +9,12 @@ WC tested up to: 8.5 */ -add_action('before_woocommerce_init', function() { +add_action('before_woocommerce_init', function () { if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) { - \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( - 'cart_checkout_blocks', __FILE__, false + \Automattic\WooCommerce\Utilities\FeaturesUtil::declareCompatibility( + 'cart_checkout_blocks', + __FILE__, + false ); } });