wc_admin_reports_path
Usage
add_filter( 'wc_admin_reports_path', 'wp_kama_wc_admin_reports_path_filter', 10, 3 );
/**
* Function for `wc_admin_reports_path` filter-hook.
*
* @param $string
* @param $name
* @param $class
*
* @return
*/
function wp_kama_wc_admin_reports_path_filter( $string, $name, $class ){
// filter...
return $string;
}
- $string
- -
- $name
- -
- $class
- -
Where the hook is called
wc_admin_reports_path
woocommerce/includes/admin/class-wc-admin-reports.php 249
include_once apply_filters( 'wc_admin_reports_path', 'reports/class-wc-report-' . $name . '.php', $name, $class );