This commit is contained in:
Alex Florisca 2022-10-13 15:49:02 +01:00 committed by GitHub
parent 952aafe4f6
commit e24e70adc6
1 changed files with 6 additions and 6 deletions

View File

@ -25,14 +25,14 @@ if ( ! defined( 'WC_BLOCKS_IS_FEATURE_PLUGIN' ) ) {
} }
// Declare compatibility with custom order tables for WooCommerce. // Declare compatibility with custom order tables for WooCommerce.
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { add_action(
add_action( 'before_woocommerce_init',
'before_woocommerce_init', function () {
function () { if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
} }
); }
} );
/** /**
* Whether notices must be displayed in the current page (plugins and WooCommerce pages). * Whether notices must be displayed in the current page (plugins and WooCommerce pages).