WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Overrides

Order::get_line_item_data() public WC 1.0

Get order line item data by type.

{} It's a method of the class: Order{}

No Hooks.

Return

Array|true|false. Array of line items on success, boolean false on failure.

Usage

$Order = new Order();
$Order->get_line_item_data( $type );
$type(string) (required)
Order line item type.

Code of Order::get_line_item_data() WC 5.3.0

<?php
public function get_line_item_data( $type ) {
	$type_to_items = array(
		'line_items'     => 'line_item',
		'tax_lines'      => 'tax',
		'shipping_lines' => 'shipping',
		'fee_lines'      => 'fee',
		'coupon_lines'   => 'coupon',
	);

	if ( isset( $type_to_items[ $type ] ) ) {
		return $this->get_items( $type_to_items[ $type ] );
	}

	return false;
}