Update HPOS compatibility snippet (https://github.com/woocommerce/woocommerce-blocks/pull/7395)
This commit is contained in:
parent
952aafe4f6
commit
e24e70adc6
|
@ -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).
|
||||||
|
|
Loading…
Reference in New Issue