WC_Order::has_cogs()
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)-
Метод класса: WC_Order{}
Хуков нет.
Возвращает
true|false
. Always true.
Использование
$WC_Order = new WC_Order(); $WC_Order->has_cogs();
Код WC_Order::has_cogs() WC Order::has cogs WC 9.6.1
public function has_cogs() { return true; }