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)
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |