Skip to content

Commit

Permalink
Declare HPOS Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGreen committed Nov 15, 2023
1 parent 0cb5996 commit dc56b8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions woocommerce-subscriptions-custom-pricestring.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@

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

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

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

Expand Down

0 comments on commit dc56b8d

Please sign in to comment.