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:
parent
2de7df9425
commit
fa0b829b15
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue