WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API\Reports\Customers\Stats

Controller::get_items() public WC 1.0

Get all reports.

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

No Hooks.

Return

Array|WP_Error.

Usage

$Controller = new Controller();
$Controller->get_items( $request );
$request(WP_REST_Request) (required)
Request data.

Code of Controller::get_items() WC 6.1.0

public function get_items( $request ) {
	$query_args      = $this->prepare_reports_query( $request );
	$customers_query = new Query( $query_args );
	$report_data     = $customers_query->get_data();
	$out_data        = array(
		'totals' => $report_data,
	);

	return rest_ensure_response( $out_data );
}