Automattic\WooCommerce\Internal\CostOfGoodsSold

CostOfGoodsSoldController::feature_is_enabled()publicWC 1.0

Is the Cost of Goods Sold engine enabled?

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

Хуков нет.

Возвращает

true|false. True if the engine is enabled, false otherwise.

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

$CostOfGoodsSoldController = new CostOfGoodsSoldController();
$CostOfGoodsSoldController->feature_is_enabled(): bool;

Код CostOfGoodsSoldController::feature_is_enabled() WC 9.7.1

public function feature_is_enabled(): bool {
	return $this->features_controller->feature_is_enabled( 'cost_of_goods_sold' );
}