Skip to content

Commit

Permalink
Merge pull request #7 from fortunateLeopard/patch-1
Browse files Browse the repository at this point in the history
Declare support for HPOS within woocommerce-dropbox.php
  • Loading branch information
vjanssens authored Feb 23, 2024
2 parents d3b03e4 + 6cc9840 commit 3ea92dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions woocommerce-dropbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@

define('WCDB_VERSION', '1.2.5');

// declare support for HPOS
add_action( 'before_woocommerce_init', function() {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
} );

class WC_Dropbox {

private $api_key;
Expand Down

0 comments on commit 3ea92dd

Please sign in to comment.