WordPress at a glance
function is not described

display_header_text() WP 3.4.0

Whether to display the header text.

No Hooks.

Return

true|false. Nothing.

Usage

display_header_text();

Changelog

Since 3.4.0 Introduced.

Code of display_header_text() WP 5.7.2

<?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;
}