get_header_textcolor() WordPress Function

The get_header_textcolor() function allows you to change the color of the text in your header. This function takes one parameter, which is the color you want to change the header text to.

get_header_textcolor() #

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


Return

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


Top ↑

Source

File: wp-includes/theme.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More