WordPress at Your Fingertips
function is not described

WC_Admin_Reports::output() public WC 1.0

Handles output of the reports page in admin.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Reports::output();

Code of WC_Admin_Reports::output() WC 5.9.0

public static function output() {
	$reports        = self::get_reports();
	$first_tab      = array_keys( $reports );
	$current_tab    = ! empty( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $reports ) ? sanitize_title( $_GET['tab'] ) : $first_tab[0];
	$current_report = isset( $_GET['report'] ) ? sanitize_title( $_GET['report'] ) : current( array_keys( $reports[ $current_tab ]['reports'] ) );

	include_once dirname( __FILE__ ) . '/reports/class-wc-admin-report.php';
	include_once dirname( __FILE__ ) . '/views/html-admin-page-reports.php';
}