WC_Admin_Reports::output()
Handles output of the reports page in admin.
Method of the class: WC_Admin_Reports{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Admin_Reports::output();
WC_Admin_Reports::output() WC Admin Reports::output code WC 9.7.1
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'; }