WordPress at Your Fingertips
function is not described

WC_Order::get_base_data() public WC 1.0

Get basic order data in array format.

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

No Hooks.

Return

Array.

Usage

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

Code of WC_Order::get_base_data() WC 5.8.0

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