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.

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

Хуков нет.

Возвращает

true|false. 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 10.0.2

public function has_cogs() {
	return true;
}