WordPress at a glance

get_header_textcolor() WP 1.0

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

Works based on: get_theme_mod()

No Hooks.


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



Code of get_header_textcolor: wp-includes/theme.php VER 5.0.1

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

Related Functions

From tag: Theme supports (theme_support)

More from tag: custom_header (theme options: video color image)

More from category: Other Theme Functions

No comments
    Hello, !     Log In . Register