WC_API_Reports::get_reports()publicWC 2.1

Get a simple listing of available reports

Method of the class: WC_API_Reports{}

No Hooks.

Return

Array.

Usage

$WC_API_Reports = new WC_API_Reports();
$WC_API_Reports->get_reports();

Changelog

Since 2.1 Introduced.

WC_API_Reports::get_reports() code WC 8.9.0

public function get_reports() {
	return array( 'reports' => array( 'sales', 'sales/top_sellers' ) );
}