WPDev.one
Core Function
View Source on Trac ↗

get_theme_root()

get_theme_root( mixed $stylesheet_or_template = '' )

Retrieves path to themes directory.

Parameters 1 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

Return Value

(string)
Themes directory path.

Function Information

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