Skip to content

Commit 3ea92dd

Browse files
authored
Merge pull request #7 from fortunateLeopard/patch-1
Declare support for HPOS within woocommerce-dropbox.php
2 parents d3b03e4 + 6cc9840 commit 3ea92dd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

woocommerce-dropbox.php

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838

3939
define('WCDB_VERSION', '1.2.5');
4040

41+
// declare support for HPOS
42+
add_action( 'before_woocommerce_init', function() {
43+
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
44+
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
45+
}
46+
} );
47+
4148
class WC_Dropbox {
4249

4350
private $api_key;

0 commit comments

Comments
 (0)