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