WordPress at a glance
function is not described

WC_API_Reports::get_reports() public WC 2.1

Get a simple listing of available reports

{} It's a 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.

Code of WC_API_Reports::get_reports() WC 5.0.0

<?php
public function get_reports() {

	return array( 'reports' => array( 'sales', 'sales/top_sellers' ) );
}