Uses
| Uses | Description |
|---|---|
| wp-includes/class-wp-theme.php: WP_Theme::display() | Gets a theme header, formatted and translated for display. |
When converting the object to a string, the theme name is returned.
(string) Theme name, ready for display (translated)
File: wp-includes/class-wp-theme.php
public function __toString() {
return (string) $this->display( 'Name' );
} | Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme/__tostring