WC_Order_Item_Product::has_cogs()publicWC 1.0

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)-

Method of the class: WC_Order_Item_Product{}

No Hooks.

Return

true|false. Always true.

Usage

$WC_Order_Item_Product = new WC_Order_Item_Product();
$WC_Order_Item_Product->has_cogs(): bool;

WC_Order_Item_Product::has_cogs() code WC 9.5.1

public function has_cogs(): bool {
	return true;
}