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

Merge branch 'feature/hpos' into 'master'

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

See merge request !5
parents a31efd4a cefa627e
No related branches found
No related tags found
1 merge request!5feature(core): Added Compatibility with WooCommerce High-Performance Order Storage (HPOS)
Pipeline #131829 failed with stages
in 1 minute and 41 seconds
## [1.1.0] - 2022-11-23
### 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,16 @@ final class PluginBootstrap {
},
self::PRIORITY_BEFORE_FLOW_2_5
);
add_action(
'before_woocommerce_init',
static function () use ( $plugin_info ) {
$features_util_class = '\\' . 'Automattic' . '\\' . 'WooCommerce' . '\\' . 'Utilities' . '\\' . 'FeaturesUtil';
if ( class_exists( $features_util_class ) ) {
$features_util_class::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