WP_Theme::__toString(): string

In this article

When converting the object to a string, the theme name is returned.

Return

string Theme name, ready for display (translated)

Source

public function __toString() {
	return (string) $this->display( 'Name' );
}

Changelog

VersionDescription
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.