WP_Theme::__toString() WordPress Method
The WP_Theme::__toString() method is used to return a string representation of a Wordpress theme. This is useful for debugging purposes.
WP_Theme::__toString() #
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
public function __toString() {
return (string) $this->display( 'Name' );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |