WC_Order_Item_Product::get_type()publicWC 1.0

Get order item type.

Method of the class: WC_Order_Item_Product{}

No Hooks.

Return

String.

Usage

$WC_Order_Item_Product = new WC_Order_Item_Product();
$WC_Order_Item_Product->get_type();

WC_Order_Item_Product::get_type() code WC 9.4.2

public function get_type() {
	return 'line_item';
}