WC_Tracker::get_orders()private staticWC 1.0

Combine all order data.

Method of the class: WC_Tracker{}

No Hooks.

Return

Array.

Usage

$result = WC_Tracker::get_orders();

WC_Tracker::get_orders() code WC 8.9.0

private static function get_orders() {
	$order_dates    = self::get_order_dates();
	$order_counts   = self::get_order_counts();
	$order_totals   = self::get_order_totals();
	$order_gateways = self::get_orders_by_gateway();
	$order_origin   = self::get_orders_origins();

	return array_merge( $order_dates, $order_counts, $order_totals, $order_gateways, $order_origin );
}