theme_root_uri WordPress Filter Hook
The theme_root_uri hook is used to retrieve the URL of the current theme. This can be useful when you need to reference resources that are located in the theme directory, such as images or JS files.
apply_filters( 'theme_root_uri', string $theme_root_uri , string $siteurl , string $stylesheet_or_template ) #
Filters the URI for themes directory.
Parameters
- $theme_root_uri
(string)The URI for themes directory.
- $siteurl
(string)WordPress web address which is set in General Options.
- $stylesheet_or_template
(string)The stylesheet or template name of the theme.
Source
File: wp-includes/theme.php
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |