WordPress at a glance
function is not described

WP_Theme::get_theme_root() public WP 3.4.0

The absolute path to the directory of the theme root.

This is typically the absolute path to wp-content/themes.

{} It's a method of the class: WP_Theme{}

No Hooks.

Return

String. Theme root.

Usage

$WP_Theme = new WP_Theme();
$WP_Theme->get_theme_root();

Changelog

Since 3.4.0 Introduced.

Code of WP_Theme::get_theme_root() WP 5.5.2

<?php
public function get_theme_root() {
	return $this->theme_root;
}