WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Theme::get_theme_root_uri() WP 3.4.0

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.

Это метод класса: WP_Theme

Хуков нет.


Строку. Theme root URI.


$WP_Theme = new WP_Theme();
$var = $WP_Theme->get_theme_root_uri();

Список изменений

С версии 3.4.0 Введена.

Код WP Theme::get theme root uri: wp-includes/class-wp-theme.php WP 5.4.1

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;