WordPress at Your Fingertips

get_header_textcolor() WP 1.0

Retrieves the custom header text color in 3- or 6-digit hexadecimal form.

No Hooks.

Return

String. Header text color in 3- or 6-digit hexadecimal form (minus the hash symbol).

Usage

get_header_textcolor();

Changelog

Since 2.1.0 Introduced.

Code of get_header_textcolor() WP 5.8.1

function get_header_textcolor() {
	return get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
}

Theme supports (theme_support)

custom_header (theme options: video color image)

Other Theme Functions

No comments
    Log In