WC_Product_Data_Store_CPT::cogs_feature_is_enabled
Check if the Cost of Goods Sold feature is enabled.
Method of the class: WC_Product_Data_Store_CPT{}
No Hooks.
Returns
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() WC Product Data Store CPT::cogs feature is enabled code WC 10.3.6
protected function cogs_feature_is_enabled(): bool {
return wc_get_container()->get( CostOfGoodsSoldController::class )->feature_is_enabled();
}