WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get theme file uri

Description

Retrieves the URL of a file in the theme.

Usage

get_theme_file_uri( string $file = ' ' )

Parameters

$file
(string) (optional) File to search for in the stylesheet directory
Default: None

Return Values

(string)
The URL of the file.

Example

Related

Theme paths: get_template(), get_template_directory(), get_template_directory_uri(), get_theme_roots(), get_theme_root(), get_theme_root_uri(), get_stylesheet(), get_stylesheet_uri(), get_stylesheet_directory(), get_stylesheet_directory_uri(), get_bloginfo(), get_theme_file_uri(), get_theme_file_path()