Add new 'wc_admin_reports_path' filter with name

Add $name to filter to be able to use the original passed value as well.
This commit is contained in:
Chuck Mac 2014-05-14 19:54:45 -04:00
parent 2de7df9425
commit fa0b829b15
1 changed files with 1 additions and 1 deletions

View File

@ -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;