init(); } add_action( 'plugins_loaded', 'tageasy_boot' ); /** * Declares compatibility with WooCommerce's order tables (HPOS) and the * cart and checkout blocks. Orders are only read and written through the * WC_Order API, never as posts. */ function tageasy_declare_woocommerce_compatibility() { if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', TAGEASY_FILE, true ); \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', TAGEASY_FILE, true ); } } add_action( 'before_woocommerce_init', 'tageasy_declare_woocommerce_compatibility' );