WC_Product_Data_Store_CPT::cogs_feature_is_enabled │ protected │ WC 1.0

Check if the Cost of Goods Sold feature is enabled.

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

Хуков нет.

Возвращает

bool. True if the feature is enabled.

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

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

Код WC_Product_Data_Store_CPT::cogs_feature_is_enabled() WC 11.3.0

protected function cogs_feature_is_enabled(): bool {
	return wc_get_container()->get( CostOfGoodsSoldController::class )->feature_is_enabled();
}