WP_Customize_Manager::_sanitize_header_textcolor PHP Method

_sanitize_header_textcolor() public method

Accepts 'blank', and otherwise uses sanitize_hex_color_no_hash(). Returns default text color if hex color is empty.
Since: 3.4.0
public _sanitize_header_textcolor ( string $color ) : mixed
$color string
return mixed
    public function _sanitize_header_textcolor($color)
    {
        if ('blank' === $color) {
            return 'blank';
        }
        $color = sanitize_hex_color_no_hash($color);
        if (empty($color)) {
            $color = get_theme_support('custom-header', 'default-text-color');
        }
        return $color;
    }
WP_Customize_Manager