WC_Order_Item_Product::has_cogs()
Indicates that product line items have an associated Cost of Goods Sold value. Note that this is true even if the product has np COGS value (in that case the COGS value for the line item will be zero)-
Метод класса: WC_Order_Item_Product{}
Хуков нет.
Возвращает
true|false
. Always true.
Использование
$WC_Order_Item_Product = new WC_Order_Item_Product(); $WC_Order_Item_Product->has_cogs(): bool;
Код WC_Order_Item_Product::has_cogs() WC Order Item Product::has cogs WC 9.8.1
public function has_cogs(): bool { return true; }