Automattic\WooCommerce\Internal\CostOfGoodsSold

CostOfGoodsSoldController::feature_is_enabled()publicWC 1.0

Is the Cost of Goods Sold engine enabled?

Method of the class: CostOfGoodsSoldController{}

No Hooks.

Return

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

Usage

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

CostOfGoodsSoldController::feature_is_enabled() code WC 9.6.1

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