WC_Order::get_base_data()publicWC 1.0

Get basic order data in array format.

Method of the class: WC_Order{}

No Hooks.

Return

Array.

Usage

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

WC_Order::get_base_data() code WC 8.6.1

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