Automattic\WooCommerce\Admin\API\Reports\Revenue\Stats

Controller::get_export_items()publicWC 1.0

Get report items for export.

Returns only the interval data.

Method of the class: Controller{}

No Hooks.

Return

WP_REST_Response.

Usage

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

Controller::get_export_items() code WC 9.3.3

public function get_export_items( $request ) {
	$response  = $this->get_items( $request );
	$data      = $response->get_data();
	$intervals = $data['intervals'];

	$response->set_data( $intervals );

	return $response;
}