WC_Product_Data_Store_CPT::cogs_feature_is_enabled()protectedWC 1.0

Check if the Cost of Goods Sold feature is enabled.

Method of the class: WC_Product_Data_Store_CPT{}

No Hooks.

Return

true|false. True if the feature is enabled.

Usage

// protected - for code of main (parent) or child class
$result = $this->cogs_feature_is_enabled(): bool;

WC_Product_Data_Store_CPT::cogs_feature_is_enabled() code WC 9.5.1

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