WooCommerce Code Reference

WC_Admin_Reports

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_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>

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.

Return values
mixed