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).
Source
File: wp-includes/theme.php
function get_header_textcolor() { return get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |