Returns the absolute path to the directory of the theme root.
This is typically the absolute path to wp-content/themes.
public function get_theme_root() {
return $this->theme_root;
}
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme/get_theme_root