WordPress filter hook
woocommerce_admin_report_data
Defined by WooCommerce and fired by 5 plugins in total, running on 7M+ sites between them.
How to use woocommerce_admin_report_data
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_admin_report_data', function( $report_data ) {
// Change $report_data here.
return $report_data;
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
5 plugins that fire woocommerce_admin_report_data
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_admin_report_data', $this->report_data )includes/admin/reports/class-wc-report-sales-by-date.php:446 -
WCFM10,000+ installs
apply_filters( 'woocommerce_admin_report_data', $this->report_data )includes/reports/class-dokan-report-sales-by-date.php:534 -
Currency per Product for WooCommerce2,000+ installs
apply_filters( 'woocommerce_admin_report_data', $this->report_data )includes/admin/class-report-sales-by-date.php:441 -
Jovvie Point of Sale POS for WooCommerce100+ installs
apply_filters( 'woocommerce_admin_report_data', $this->report_data )includes/Admin/Reports/ReportSalesByGateway.php:429 -
GG Multiple Payment Routing for WooCommerce30+ installs
apply_filters( 'woocommerce_admin_report_data', $this->report_data )inc/Common/Module/Report/Paypal.php:539
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.