File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 24
24
use Automattic \WooCommerce \GoogleListingsAndAds \Internal \Requirements \PluginValidator ;
25
25
use Automattic \WooCommerce \GoogleListingsAndAds \Internal \Requirements \VersionValidator ;
26
26
use Automattic \WooCommerce \GoogleListingsAndAds \PluginFactory ;
27
+ use Automattic \WooCommerce \Utilities \FeaturesUtil ;
27
28
use Psr \Container \ContainerInterface ;
28
29
29
30
defined ( 'ABSPATH ' ) || exit;
@@ -51,6 +52,16 @@ function () {
51
52
}
52
53
);
53
54
55
+ // HPOS compatibility declaration.
56
+ add_action (
57
+ 'before_woocommerce_init ' ,
58
+ function () {
59
+ if ( class_exists ( FeaturesUtil::class ) ) {
60
+ FeaturesUtil::declare_compatibility ( 'custom_order_tables ' , __FILE__ );
61
+ }
62
+ }
63
+ );
64
+
54
65
// Hook much of our plugin after WooCommerce is loaded.
55
66
add_action (
56
67
'woocommerce_loaded ' ,
You can’t perform that action at this time.
0 commit comments