display_header_text() WordPress Function

The display_header_text() function is used to display the header text for a WordPress site. The header text is set in the WordPress admin area under Settings > General. The header text is displayed in the header area of the site, above the site title or logo.

display_header_text() #

Whether to display the header text.


Return

(bool)


Top ↑

Source

File: wp-includes/theme.php

function display_header_text() {
	if ( ! current_theme_supports( 'custom-header', 'header-text' ) ) {
		return false;
	}

	$text_color = get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
	return 'blank' !== $text_color;
}


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.

Show More