WC_Admin_Reports::output()
Handles output of the reports page in admin.
Метод класса: WC_Admin_Reports{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_Admin_Reports::output();
Код WC_Admin_Reports::output() WC Admin Reports::output WC 9.5.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'; }