描述:
检索自定义页眉的字体颜色
用法:
<?php get_header_textcolor() ?>
参数:
None
示例:
<?php
$header_text_color = get_header_textcolor();
echo "The color of the text inside the header is #". $header_text_color . ".";
?>
源文件:
/**
* Retrieve text color for custom header.
*
* @since 2.1.0
*
* @return string
*/
function get_header_textcolor() {
return get_theme_mod('header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
}