WC_Order_Refund::has_cogspublicWC 9.9.0

Indicates if the current order has an associated Cost of Goods Sold value. For refunds the cost will be sum of the cost of the refunded items.

Method of the class: WC_Order_Refund{}

No Hooks.

Returns

true|false. True if this order has an associated Cost of Goods Sold value.

Usage

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

Changelog

Since 9.9.0 Introduced.

WC_Order_Refund::has_cogs() code WC 10.3.6

public function has_cogs() {
	return true;
}