Skip to content

Commit

Permalink
declare incompatibility with block checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
baka-san committed Feb 15, 2024
1 parent d34f4b7 commit 7a16b76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7a16b76

Please sign in to comment.