WC_Order::has_cogs()publicWC 1.0

Indicates that regular orders have an associated Cost of Goods Sold value. Note that this is true even if the order has no line items with COGS values (in that case the COGS value for the order will be zero)-

Method of the class: WC_Order{}

No Hooks.

Return

true|false. Always true.

Usage

$WC_Order = new WC_Order();
$WC_Order->has_cogs();

WC_Order::has_cogs() code WC 9.6.1

public function has_cogs() {
	return true;
}