Skip to content
Snippets Groups Projects
Commit 8464e652 authored by Sebastian Pisula's avatar Sebastian Pisula
Browse files

Merge branch 'feature/compability-hpos' into 'master'

feature(core): Added Compatibility with WooCommerce High-Performance Order Storage (HPOS)

See merge request !3
parents 28f52c72 718f17bc
No related branches found
No related tags found
1 merge request!3feature(core): Added Compatibility with WooCommerce High-Performance Order Storage (HPOS)
Pipeline #131609 failed with stages
in 1 minute and 40 seconds
## [1.1.0] - 2022-11-22
### Added
- Compatibility with WooCommerce High-Performance Order Storage (HPOS)
## [1.0.4] - 2022-05-25
### Fixed
- Added missing `wpdesk/wp-wpdesk-tracker` library
......
*
!.gitignore
!pl_PL.po
!index.php
\ No newline at end of file
......@@ -115,6 +115,15 @@ final class PluginBootstrap {
},
self::PRIORITY_BEFORE_FLOW_2_5
);
add_action(
'before_woocommerce_init',
static function () use ( $plugin_info ) {
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', $plugin_info->get_plugin_file_name(), true );
}
}
);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment