函数原型
get_header_textcolor(): string
函数描述
Retrieves the custom header text color in 3- or 6-digit hexadecimal form.
是否弃用
未弃用
函数参数
无
函数返回值
string Header text color in 3- or 6-digit hexadecimal form (minus the hash symbol).
函数位置
File: wp-includes/theme.php.
函数源码
function get_header_textcolor() {
return get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |

