apply_filters( 'theme_root_uri', string $theme_root_uri, string $siteurl, string $stylesheet_or_template )
- Since
- 1.5.0
Filters the URI for themes directory.
Compatibility
- WordPress
- since 1.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$theme_root_uristring- The URI for themes directory.
$siteurlstring- WordPress web address which is set in General Options.
$stylesheet_or_templatestring- The stylesheet or template name of the theme.
Where this hook fires · 1
wp-includes/theme.php:682get_theme_root_uri()
Source code
* @since 1.5.0 * * @param string $theme_root_uri The URI for themes directory. * @param string $siteurl WordPress web address which is set in General Options. * @param string $stylesheet_or_template The stylesheet or template name of the theme. */ return apply_filters( 'theme_root_uri', $theme_root_uri, get_option( 'siteurl' ), $stylesheet_or_template );} /** * Gets the raw theme root relative to the content directory with no filters applied. * * @since 3.1.0Changelog
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 7.0.4 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.