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".
Method of the class: WC_Abstract_Order{}
No Hooks.
Return
true|false
. True if this order has an associated Cost of Goods Sold value.
Usage
$WC_Abstract_Order = new WC_Abstract_Order(); $WC_Abstract_Order->has_cogs();
Changelog
Since 9.5.0 | Introduced. |
WC_Abstract_Order::has_cogs() WC Abstract Order::has cogs code WC 9.5.1
public function has_cogs() { return false; }