Skip to content

Commit

Permalink
Merge pull request #156 from woocommerce/grow-smooth-generator-hpos-w…
Browse files Browse the repository at this point in the history
…arning

Grow smooth generator HPOS warning
  • Loading branch information
mikkamp authored Jan 22, 2025
2 parents 5e67b3c + 79f2b69 commit 26760e1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion plugins/grow-smooth-generator/grow-smooth-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Grow Smooth Generator
* Description: A smooth generator for Grow extension data.
* Version: 0.1.1
* Version: 0.1.2
* Author: Grow
* Author URI: https://woogrowp2.wordpress.com
*
Expand Down Expand Up @@ -61,3 +61,13 @@ function wc_grow_smooth_generator_notices() {
</div>
<?php
}

// WooCommerce compatibility declarations.
add_action(
'before_woocommerce_init',
function () {
if ( class_exists( Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__ );
}
}
);

0 comments on commit 26760e1

Please sign in to comment.