Skip to content

Commit 26760e1

Browse files
authored
Merge pull request #156 from woocommerce/grow-smooth-generator-hpos-warning
Grow smooth generator HPOS warning
2 parents 5e67b3c + 79f2b69 commit 26760e1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

plugins/grow-smooth-generator/grow-smooth-generator.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Grow Smooth Generator
44
* Description: A smooth generator for Grow extension data.
5-
* Version: 0.1.1
5+
* Version: 0.1.2
66
* Author: Grow
77
* Author URI: https://woogrowp2.wordpress.com
88
*
@@ -61,3 +61,13 @@ function wc_grow_smooth_generator_notices() {
6161
</div>
6262
<?php
6363
}
64+
65+
// WooCommerce compatibility declarations.
66+
add_action(
67+
'before_woocommerce_init',
68+
function () {
69+
if ( class_exists( Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
70+
Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__ );
71+
}
72+
}
73+
);

0 commit comments

Comments
 (0)