1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?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(); } }
|