automatewoo/includes/HPOS_Helper.php
fei-source 47d3c9a8b6 Update to v6.2.2
Source: GrootMade/Festinger Vault
2026-03-15 08:31:15 +08:00

21 lines
497 B
PHP

<?php
// phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
namespace AutomateWoo;
use Automattic\WooCommerce\Utilities\OrderUtil;
/**
* Set of helper functions for High Performance Order Storage (HPOS).
*
* @class HPOS_Helper
* @since 5.7.0
*/
class HPOS_Helper {
/**
* Check if the HPOS feature is enabled.
*/
public static function is_HPOS_enabled() {
return class_exists( OrderUtil::class ) && OrderUtil::custom_orders_table_usage_is_enabled();
}
}