WordPress at Your Fingertips
function is not described

WC_REST_Report_Sales_V1_Controller::get_items() public WC 1.0

Get sales reports.

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

No Hooks.

Return

Array|WP_Error.

Usage

$WC_REST_Report_Sales_V1_Controller = new WC_REST_Report_Sales_V1_Controller();
$WC_REST_Report_Sales_V1_Controller->get_items( $request );
$request(WP_REST_Request) (required)
-

Code of WC_REST_Report_Sales_V1_Controller::get_items() WC 5.9.0

public function get_items( $request ) {
	$data   = array();
	$item   = $this->prepare_item_for_response( null, $request );
	$data[] = $this->prepare_response_for_collection( $item );

	return rest_ensure_response( $data );
}