WC_Product::get_cogs_effective_value_core()protectedWC 1.0

Core method to get the effective value of the Cost of Goods Sold for this product. (the final, actual monetary value).

Derived classes can override this method to provide an alternative way of calculating the effective value from the defined value, see for example the WC_Product_Variation class.

Method of the class: WC_Product{}

No Hooks.

Return

float. The effective value for this product.

Usage

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

WC_Product::get_cogs_effective_value_core() code WC 9.5.1

protected function get_cogs_effective_value_core(): float {
	return $this->get_cogs_value();
}