WC_Product::get_cogs_total_value_core()
Core function to get the effective total value of the Cost of Goods Sold for this product.
Derived classes can override this method to provide an alternative way of calculating the total effective value from the single effective value and/or the defined value.
Метод класса: WC_Product{}
Хуков нет.
Возвращает
float
. The effective total value for this product.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_cogs_total_value_core(): float;
Код WC_Product::get_cogs_total_value_core() WC Product::get cogs total value core WC 9.7.1
protected function get_cogs_total_value_core(): float { return $this->get_cogs_effective_value(); }