WP_Theme::__toString()publicWP 3.4.0

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

Метод класса: WP_Theme{}

Хуков нет.

Возвращает

Строку. Theme name, ready for display (translated)

Использование

$WP_Theme = new WP_Theme();
$WP_Theme->__toString();

Список изменений

С версии 3.4.0 Введена.

Код WP_Theme::__toString() WP 6.5.2

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