函数原型
display_header_text(): bool
函数描述
Whether to display the header text.
是否弃用
未弃用
函数参数
无
函数返回值
bool
函数位置
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;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |

