We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4bf8cc commit 6e9fbc2Copy full SHA for 6e9fbc2
plugin.php
@@ -31,3 +31,13 @@
31
32
$cc_woo_plugin = new \WebDevStudios\CCForWoo\Plugin( __FILE__ );
33
$cc_woo_plugin->run();
34
+
35
+// Declare compatibility with custom order tables for WooCommerce.
36
+add_action(
37
+ 'before_woocommerce_init',
38
+ function () {
39
+ if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
40
+ \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
41
+ }
42
43
+);
0 commit comments