diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d79b2c3229b8e6e2e98773836f1c827ceb2153c..4e6015ba4bd1da3d8c9e07b0c47d1bd81b70127b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.1.0] - 2022-11-22 +### 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..9d02c621c0c93a10be800586b323d0ccd357ab72 100644 --- a/src/PluginBootstrap.php +++ b/src/PluginBootstrap.php @@ -115,6 +115,15 @@ final class PluginBootstrap { }, self::PRIORITY_BEFORE_FLOW_2_5 ); + + add_action( + 'before_woocommerce_init', + static function () use ( $plugin_info ) { + if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { + \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', $plugin_info->get_plugin_file_name(), true ); + } + } + ); } /**