apply_filters( 'theme_root', string $theme_root )
- Since
- 1.5.0
Filters the absolute path to the themes directory.
Parameters
$theme_rootstring- Absolute path to themes directory.
Where this hook fires · 1
wp-includes/theme.php:629get_theme_root()
Source code
* Filters the absolute path to the themes directory. * * @since 1.5.0 * * @param string $theme_root Absolute path to themes directory. */ return apply_filters( 'theme_root', $theme_root );} /** * Retrieves URI for themes directory. * * Does not have trailing slash.Changelog
Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.