WC_Admin_Reports
in package
WC_Admin_Reports Class.
Table of Contents
- get_report() : mixed
- Get a report from our reports subfolder.
- get_report_instance() : WC_Admin_Report
- Get an instance of WC_Admin_Report.
- get_reports() : array<string|int, mixed>
- Returns the definitions for the reports to show in admin.
- output() : mixed
- Handles output of the reports page in admin.
- register_hook_handlers() : mixed
- Register the proper hook handlers.
- replace_dashboard_status_widget_reports() : mixed
- Filter handler for replacing the data of the status widget on the Dashboard page.
Methods
get_report()
Get a report from our reports subfolder.
public
static get_report(string $name) : mixed
Parameters
- $name : string
Return values
mixed —get_report_instance()
Get an instance of WC_Admin_Report.
public
static get_report_instance() : WC_Admin_Report
Return values
WC_Admin_Report —get_reports()
Returns the definitions for the reports to show in admin.
public
static get_reports() : array<string|int, mixed>
Return values
array<string|int, mixed> —output()
Handles output of the reports page in admin.
public
static output() : mixed
Return values
mixed —register_hook_handlers()
Register the proper hook handlers.
public
static register_hook_handlers() : mixed
Return values
mixed —replace_dashboard_status_widget_reports()
Filter handler for replacing the data of the status widget on the Dashboard page.
public
static replace_dashboard_status_widget_reports(array<string|int, mixed> $status_widget_reports) : mixed
Parameters
- $status_widget_reports : array<string|int, mixed>
-
The data to display in the status widget.