get_header_textcolor

The timeline below displays how wordpress function get_header_textcolor has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.8

/**
 * Retrieves the custom header text color in 3- or 6-digit hexadecimal form.
 *
 * @since 2.1.0
 *
 * @return string Header text color in 3- or 6-digit hexadecimal form (minus the hash symbol).
 */
function get_header_textcolor()
{
    return get_theme_mod('header_textcolor', get_theme_support('custom-header', 'default-text-color'));
}

WordPress Version: 4.5

/**
 * Retrieves the custom header text color in HEX format.
 *
 * @since 2.1.0
 *
 * @return string Header text color in HEX format (minus the hash symbol).
 */
function get_header_textcolor()
{
    return get_theme_mod('header_textcolor', get_theme_support('custom-header', 'default-text-color'));
}

WordPress Version: 3.7

/**
 * 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'));
}