Codex

Function Reference/get theme root

Contents

Description

Retrieve path to themes directory.

Does not have trailing slash.

Usage

<?php get_theme_root() ?>

Parameters

None.

Return Values

(string) 
Theme path as /home/user/public_html/wp-content/themes (no trailing slash).

Examples

Notes

Change Log

Since: 1.5.0

Source File

get_theme_root() is located in wp-includes/theme.php.

Related

See also index of Function Reference and index of Template Tags.