get_header_textcolor()
Retrieves the custom header text color in 3- or 6-digit hexadecimal form.
Description Description
Return Return
(string) Header text color in 3- or 6-digit hexadecimal form (minus the hash symbol).
Source 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 code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example
The example below gets the color of the text inside the header, stores it in a variable and then prints it within the echo statement.
The example below gets the color of the text inside the header, stores it in a variable and then prints it within the echo statement.