When converting the object to a string, the theme name is returned.
Source
public function __toString() {
return (string) $this->display( 'Name' );
}
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
CARVIEW |
When converting the object to a string, the theme name is returned.
public function __toString() {
return (string) $this->display( 'Name' );
}
Uses | Description |
---|---|
WP_Theme::display()wp-includes/class-wp-theme.php | Gets a theme header, formatted and translated for display. |
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.