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)


Top ↑

Source

File: wp-includes/class-wp-theme.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.