theme_root WordPress Filter Hook

The theme_root hook is used to change the location of the theme directory. This is useful if you want to use a custom theme or if you want to change the location of the theme directory for performance reasons.

apply_filters( 'theme_root', string $theme_root ) #

Filters the absolute path to the themes directory.


Parameters

$theme_root

(string)Absolute path to themes directory.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More