WC_Order::get_base_data │ public │ WC 1.0

Get basic order data in array format.

Method of the class: WC_Order{}

No Hooks.

Returns

array.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_base_data();

WC_Order::get_base_data() code WC 11.2.2

public function get_base_data() {
	return array_merge(
		array( 'id' => $this->get_id() ),
		$this->data,
		array( 'number' => $this->get_order_number() )
	);
}