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).




Since 2.1.0 Introduced.

Code of get header textcolor: wp-includes/theme.php WP 5.4.2

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
        Log In . Register