WC_Product_Data_Store_CPT::use_cogs_lookup_column()
Check if the COGS value column from the product meta lookup table can be used.
Method of the class: WC_Product_Data_Store_CPT{}
No Hooks.
Returns
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->use_cogs_lookup_column(): bool;
WC_Product_Data_Store_CPT::use_cogs_lookup_column() WC Product Data Store CPT::use cogs lookup column code WC 9.8.5
protected function use_cogs_lookup_column(): bool { $cogs_controller = wc_get_container()->get( CostOfGoodsSoldController::class ); return $cogs_controller->feature_is_enabled() && $cogs_controller->product_meta_lookup_table_cogs_value_columns_exist(); }