WC_Customer_Data_Store::is_cot_in_use()privateWC 1.0

Check if the usage of the custom orders table is enabled.

Метод класса: WC_Customer_Data_Store{}

Хуков нет.

Возвращает

true|false.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->is_cot_in_use(): bool;

Код WC_Customer_Data_Store::is_cot_in_use() WC 8.7.0

private function is_cot_in_use(): bool {
	return wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled();
}