WPDev.one
Core Function
View Source on Trac ↗

get_theme_root_uri()

get_theme_root_uri( mixed $stylesheet_or_template = '', mixed $theme_root = '' )

Retrieves URI for themes directory.

Parameters 2 required

Name / Type Description
string

$stylesheet_or_template Optional. The stylesheet or template name of the theme. Default is to leverage the main theme root.

Required
string

$theme_root Optional. The theme root for which calculations will be based, preventing the need for a get_raw_theme_root() call. Default empty.

Required

Return Value

(string)
Themes directory URI.

Function Information

Since Version
1.5.0
Source File
wp-includes/theme.php
Advertisement