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

bool. 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 11.0.1

public function has_cogs() {
	return true;
}