Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
baka-san committed Feb 16, 2024
1 parent 068b623 commit 9e4162d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
});
Expand Down

0 comments on commit 9e4162d

Please sign in to comment.