diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d79b2c3229b8e6e2e98773836f1c827ceb2153c..b7ce6fd6e7624bdb1b229f51d63edcde873be2a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.1.0] - 2022-11-23 +### Added +- Compatibility with WooCommerce High-Performance Order Storage (HPOS) + ## [1.0.4] - 2022-05-25 ### Fixed - Added missing `wpdesk/wp-wpdesk-tracker` library diff --git a/lang/.gitignore b/lang/.gitignore deleted file mode 100644 index 06e1972c9596cf6bfc272f16d5381a630b80e015..0000000000000000000000000000000000000000 --- a/lang/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -* -!.gitignore -!pl_PL.po -!index.php \ No newline at end of file diff --git a/src/PluginBootstrap.php b/src/PluginBootstrap.php index 521bceb3915f91be4c557c7c55f4ce09967f120c..247dd58bd1810bb20db4836524c8ea0437d26782 100644 --- a/src/PluginBootstrap.php +++ b/src/PluginBootstrap.php @@ -115,6 +115,16 @@ final class PluginBootstrap { }, self::PRIORITY_BEFORE_FLOW_2_5 ); + + add_action( + 'before_woocommerce_init', + static function () use ( $plugin_info ) { + $features_util_class = '\\' . 'Automattic' . '\\' . 'WooCommerce' . '\\' . 'Utilities' . '\\' . 'FeaturesUtil'; + if ( class_exists( $features_util_class ) ) { + $features_util_class::declare_compatibility( 'custom_order_tables', $plugin_info->get_plugin_file_name(), true ); + } + } + ); } /**