WC_Customer_Data_Store::is_cot_in_use()privateWC 1.0

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

Method of the class: WC_Customer_Data_Store{}

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->is_cot_in_use(): bool;

WC_Customer_Data_Store::is_cot_in_use() code WC 8.7.0

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