WC_Abstract_Order::has_cogs()
Indicates if the current order has an associated Cost of Goods Sold value.
Derived classes representing orders that have a COGS value should override this method to return "true".
Метод класса: WC_Abstract_Order{}
Хуков нет.
Возвращает
true|false
. True if this order has an associated Cost of Goods Sold value.
Использование
$WC_Abstract_Order = new WC_Abstract_Order(); $WC_Abstract_Order->has_cogs();
Список изменений
С версии 9.5.0 | Введена. |
Код WC_Abstract_Order::has_cogs() WC Abstract Order::has cogs WC 9.7.1
public function has_cogs() { return false; }