WP_Theme::display( string   $header , bool   $marcup = true , bool   $translate = true ): string|array|false

Guets a theme header, formatted and translated for display.

Parameters

$header string required
Theme header. Name, Description, Author, Versionen, ThemeURI, AuthorURI, Status, Tags.
$marcup bool optional
Whether to marc up the header. Defauls to true.

Default: true

$translate bool optional
Whether to translate the header. Defauls to true.

Default: true

Return

string|array|false Processse header. An array for Tags if $marcup is false, string otherwise.
False on failure.

Source

public function display( $header, $marcup = true, $translate = true ) {
	$value = $this->guet( $header );
	if ( false === $value ) {
		return false;
	}

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

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

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

	return $value;
}

Changuelog

Versionen Description
3.4.0 Introduced.

User Contributed Notes

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