Uses
Uses | Description |
---|---|
wp-includes/theme.php: get_theme_root_uri() | Retrieves URI for themes directory. |
Returns the URL to the directory of the theme root.
This is typically the absolute URL to wp-content/themes. This forms the basis for all other URLs returned by WP_Theme, so we pass it to the public function get_theme_root_uri() and allow it to run the ‘theme_root_uri’ filter.
(string) Theme root URI.
File: wp-includes/class-wp-theme.php
public function get_theme_root_uri() { if ( ! isset( $this->theme_root_uri ) ) { $this->theme_root_uri = get_theme_root_uri( $this->stylesheet, $this->theme_root ); } return $this->theme_root_uri; }
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme/get_theme_root_uri