wc_admin_reports_path

wc_admin_reports_path

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('wc_admin_reports_path') is found 1 times:

  • /includes/admin/class-wc-admin-reports.php line 170
    	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();