WC_Order_Item_Product::has_cogspublicWC 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.

Returns

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 10.6.2

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