woocommerce_dashboard_status_widget_reports
Filter to change the reports of the status widget on the Dashboard page.
Please note that this filter is mainly for backward compatibility with the legacy reports. It's not recommended to use this filter to change the data of this widget.
Usage
add_filter( 'woocommerce_dashboard_status_widget_reports', 'wp_kama_woocommerce_dashboard_status_widget_reports_filter' ); /** * Function for `woocommerce_dashboard_status_widget_reports` filter-hook. * * @param $status_widget_reports * * @return */ function wp_kama_woocommerce_dashboard_status_widget_reports_filter( $status_widget_reports ){ // filter... return $status_widget_reports; }
- $status_widget_reports
- -
Changelog
Since 9.5.0 | Introduced. |
Where the hook is called
woocommerce_dashboard_status_widget_reports
woocommerce/includes/admin/class-wc-admin-dashboard.php 160
$status_widget_reports = apply_filters( 'woocommerce_dashboard_status_widget_reports', $status_widget_reports );
Where the hook is used in WooCommerce
woocommerce/includes/admin/class-wc-admin-reports.php 31
add_filter( 'woocommerce_dashboard_status_widget_reports', array( __CLASS__, 'replace_dashboard_status_widget_reports' ) );