Skip to content

Commit dc56b8d

Browse files
committed
Declare HPOS Compat
1 parent 0cb5996 commit dc56b8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

woocommerce-subscriptions-custom-pricestring.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838

3939
// add_filter("woocommerce_subscription_price_string", "wcs_custom_price_strings_cart", 10, 2);
4040

41+
// Declare HPOS compat per https://github.com/woocommerce/woocommerce/wiki/High-Performance-Order-Storage-Upgrade-Recipe-Book#declaring-extension-incompatibility
42+
add_action( 'before_woocommerce_init', function() {
43+
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
44+
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
45+
}
46+
} );
4147

4248
require_once 'includes/class-pp-dependencies.php';
4349

0 commit comments

Comments
 (0)