Automattic\WooCommerce\Utilities
OrderUtil::unknown_orders_data_store_in_use
Checks if the data store currently in use for orders is unknown (none of the ones managed by WooCommerce core).
Method of the class: OrderUtil{}
No Hooks.
Returns
true|false. True if the data store currently in use for orders is neither the HPOS one nor the CPT one.
Usage
$result = OrderUtil::unknown_orders_data_store_in_use(): bool;
OrderUtil::unknown_orders_data_store_in_use() OrderUtil::unknown orders data store in use code WC 10.4.3
public static function unknown_orders_data_store_in_use(): bool {
return ! self::custom_orders_table_usage_is_enabled() &&
( \WC_Order_Data_Store_CPT::class !== \WC_Data_Store::load( 'order' )->get_current_class_name() );
}