Add HPOS compatible declaration
-
Please add the High-performance order storage (HPOS) compatibility declaration:
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 );
}
});This plugin is simple and still works great in the lastest versions of WooCommerce but without this declaration can’t activate the HPOS in our e-commerces.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.