From fa0b829b15c8c4a8224f6611297528a3efb2eef2 Mon Sep 17 00:00:00 2001 From: Chuck Mac Date: Wed, 14 May 2014 19:54:45 -0400 Subject: [PATCH] Add new 'wc_admin_reports_path' filter with name Add $name to filter to be able to use the original passed value as well. --- includes/admin/class-wc-admin-reports.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-reports.php b/includes/admin/class-wc-admin-reports.php index 96315568720..4ca7d2430ce 100644 --- a/includes/admin/class-wc-admin-reports.php +++ b/includes/admin/class-wc-admin-reports.php @@ -155,7 +155,7 @@ class WC_Admin_Reports { $name = sanitize_title( str_replace( '_', '-', $name ) ); $class = 'WC_Report_' . str_replace( '-', '_', $name ); - include_once( apply_filters( 'wc_admin_reports_path', 'reports/class-wc-report-' . $name . '.php', $class ) ); + include_once( apply_filters( 'wc_admin_reports_path', 'reports/class-wc-report-' . $name . '.php', $name, $class ) ); if ( ! class_exists( $class ) ) return;