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.
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() 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(); }