theme_file_path

theme_file_path

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('theme_file_path') is found 3 times:

  • /wp-includes/class-wp-theme.php line 1619
    			$path = $template_directory . '/' . $file;
    		}
    
    		/** This filter is documented in wp-includes/link-template.php */
    		return apply_filters( 'theme_file_path', $path, $file );
    	}
    
    	/**
    	 * Determines the latest WordPress default theme that is installed.
    	 *
    	 * This hits the filesystem.
    
  • /wp-includes/global-styles-and-settings.php line 433
    		$path = $template_directory . '/theme.json';
    	}
    
    	/** This filter is documented in wp-includes/link-template.php */
    	$path = apply_filters( 'theme_file_path', $path, 'theme.json' );
    
    	$theme_has_support[ $stylesheet ] = file_exists( $path );
    
    	return $theme_has_support[ $stylesheet ];
    }
    
    
  • /wp-includes/link-template.php line 4651
    	 *
    	 * @param string $path The file path.
    	 * @param string $file The requested file to search for.
    	 */
    	return apply_filters( 'theme_file_path', $path, $file );
    }
    
    /**
     * Retrieves the path of a file in the parent theme.
     *
     * @since 4.7.0