WC_Order_Refund::has_cogs │ public │ WC 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.

Метод класса: WC_Order_Refund{}

Хуков нет.

Возвращает

bool. True if this order has an associated Cost of Goods Sold value.

Использование

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

Список изменений

С версии 9.9.0 Введена.

Код WC_Order_Refund::has_cogs() WC 11.3.0

public function has_cogs() {
	return true;
}