get_theme_root_uri() WP 1.0
Retrieve URI for themes directory.
Does not have trailing slash.
Works based on: content_url()
1 time = 0.00004s = very fast | 50000 times = 2.11s = fast
Hooks from the function
Return
String. Themes directory URI.
Usage
get_theme_root_uri( $stylesheet_or_template, $theme_root );
- $stylesheet_or_template(string)
- The stylesheet or template name of the theme.
Default: to leverage the main theme root - $theme_root(string)
- The theme root for which calculations will be based, preventing the need for a get_raw_theme_root() call.
Default: ''
Notes
- Global. Array. $wp_theme_directories
Changelog
Since 1.5.0 | Introduced. |
Code of get_theme_root_uri() get theme root uri WP 5.6
Related Functions
From tag: theme path (theme folder url)
More from tag: Link (URL)
- admin_url()
- attachment_url_to_postid()
- build_query()
- comment_link()
- content_url()
- get_comments_link()
- get_comments_pagenum_link()
- get_edit_post_link()
- get_edit_term_link()
- get_home_url()
- get_next_comments_link()
- get_post_embed_url()