woocommerce_after_dashboard_status_widget_parameter
Filter to change the first argument passed to the woocommerce_after_dashboard_status_widget
Please note that this filter is mainly for backward compatibility with the legacy reports. It's not recommended to use this filter as it will soon be deprecated along with the retiring of the legacy reports.
Usage
add_filter( 'woocommerce_after_dashboard_status_widget_parameter', 'wp_kama_woocommerce_after_dashboard_status_widget_parameter_filter' ); /** * Function for `woocommerce_after_dashboard_status_widget_parameter` filter-hook. * * @param $null * * @return */ function wp_kama_woocommerce_after_dashboard_status_widget_parameter_filter( $null ){ // filter... return $null; }
- $null
- -
Changelog
Since 9.5.0 | Introduced. |
Where the hook is called
woocommerce_after_dashboard_status_widget_parameter
woocommerce/includes/admin/class-wc-admin-dashboard.php 239
$reports = apply_filters( 'woocommerce_after_dashboard_status_widget_parameter', null );
Where the hook is used in WooCommerce
woocommerce/includes/admin/class-wc-admin-reports.php 30
add_filter( 'woocommerce_after_dashboard_status_widget_parameter', array( __CLASS__, 'get_report_instance' ) );