get_theme_file_uri

SummerySummery

Retrieves the URL of a file in the theme.

Syntax

get_theme_file_uri( string $file = '' )

DescriptionDescription

Searches in the stylesheet directory before the template directory so themes which inherit from a parent theme can just override one file.

ParametersParameters

$file

(string) (Optional) File to search for in the stylesheet directory.

Default value: ''

ReturnReturn

(string) The URL of the file.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top