WPDev.one
Core Function
View Source on Trac ↗

register_theme_directory()

register_theme_directory( mixed $directory )

Registers a directory that contains themes.

Parameters 1 required

Name / Type Description
string

$directory Either the full filesystem path to a theme folder or a folder within WP_CONTENT_DIR.

Required

Return Value

(bool)
bool True if successfully registered a directory that contains themes, false if the directory does not exist.

Function Information

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