WordPress at a glance
function is not described

WP_Theme::display() public WP 3.4.0

Gets a theme header, formatted and translated for display.

{} It's a method of the class: WP_Theme{}

No Hooks.

Return

String/Array/false. Processed header. An array for Tags if $markup is false, string otherwise. False on failure.

Usage

$WP_Theme = new WP_Theme();
$WP_Theme->display( $header, $markup, $translate );
$header(string) (required)
Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
$markup(true/false)
Whether to mark up the header.
Default: true
$translate(true/false)
Whether to translate the header.
Default: true

Changelog

Since 3.4.0 Introduced.

Code of WP_Theme::display() WP 5.5.1

<?php
public function display( $header, $markup = true, $translate = true ) {
	$value = $this->get( $header );
	if ( false === $value ) {
		return false;
	}

	if ( $translate && ( empty( $value ) || ! $this->load_textdomain() ) ) {
		$translate = false;
	}

	if ( $translate ) {
		$value = $this->translate_header( $header, $value );
	}

	if ( $markup ) {
		$value = $this->markup_header( $header, $value, $translate );
	}

	return $value;
}