Title: Add HPOS compatible declaration
Last modified: December 10, 2024

---

# Add HPOS compatible declaration

 *  [Pacotole](https://wordpress.org/support/users/pacotole/)
 * (@pacotole)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/add-hpos-compatible-declaration/)
 * Please add the High-performance order storage (HPOS) compatibility declaration:
 *     ```wp-block-code
       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)

 *  Plugin Author [Soft79](https://wordpress.org/support/users/josk79/)
 * (@josk79)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/add-hpos-compatible-declaration/#post-18191986)
 * Hi, we have no plans on updating the plugin on short notice, but a quick workaround
   for you would be adding the snippet to your child theme’s functions.php and replacing`
   __FILE__` with the filename of our plugin.

Viewing 1 replies (of 1 total)

The topic ‘Add HPOS compatible declaration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/soft79-cart-links-for-woocommerce.
   svg)
 * [Cart links for WooCommerce](https://wordpress.org/plugins/soft79-cart-links-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/soft79-cart-links-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/soft79-cart-links-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/soft79-cart-links-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/soft79-cart-links-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Soft79](https://wordpress.org/support/users/josk79/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/add-hpos-compatible-declaration/#post-18191986)
 * Status: not resolved