WordPress at a glance
function is not described

WC_Order::get_data() WC 3.0.0

Get all class data in array format.

This is a method of the class: WC_Order

No Hooks.

Return

Array.

Usage

$WC_Order = new WC_Order();
$var = $WC_Order->get_data();

Code of WC_Order::get_data: woocommerce/includes/class-wc-order.php VER 3.5.2

<?php
public function get_data() {
	return array_merge(
		array(
			'id' => $this->get_id(),
		),
		$this->data,
		array(
			'number'         => $this->get_order_number(),
			'meta_data'      => $this->get_meta_data(),
			'line_items'     => $this->get_items( 'line_item' ),
			'tax_lines'      => $this->get_items( 'tax' ),
			'shipping_lines' => $this->get_items( 'shipping' ),
			'fee_lines'      => $this->get_items( 'fee' ),
			'coupon_lines'   => $this->get_items( 'coupon' ),
		)
	);
}