wc_admin_reports_path

wc_admin_reports_path

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('wc_admin_reports_path') is found 1 times:

  • /includes/admin/class-wc-admin-reports.php line 249
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    public static function get_report( $name ) {
        $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', $name, $class );
     
        if ( ! class_exists( $class ) ) {
            return;
        }
     
        $report = new $class();