On this page
display_header_text(): bool
Whether to display the header text.
Return
bool
Source
File: wp-includes/theme.php. View all references
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;
}
Related
Uses
| Uses | Description |
|---|---|
| get_theme_mod() wp-includes/theme.php | Retrieves theme modification value for the active theme. |
| get_theme_support() wp-includes/theme.php | Gets the theme support arguments passed when registering that support. |
| current_theme_supports() wp-includes/theme.php | Checks a theme’s support for a given feature. |
Used By
| Used By | Description |
|---|---|
| Custom_Image_Header::step_1() wp-admin/includes/class-custom-image-header.php | Display first step of custom header image page. |
| Custom_Image_Header::js_1() wp-admin/includes/class-custom-image-header.php | Display JavaScript based on Step 1 and 3. |
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/display_header_text