On this page
get_header_textcolor(): string
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. View all references
function get_header_textcolor() {
return get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
}
Related
Uses
| Uses | Description |
|---|---|
| get_theme_support() wp-includes/theme.php | Gets the theme support arguments passed when registering that support. |
| get_theme_mod() wp-includes/theme.php | Retrieves theme modification value for the active theme. |
Used By
| Used By | Description |
|---|---|
| Custom_Image_Header::step_1() wp-admin/includes/class-custom-image-header.php | Display first step of custom header image page. |
| header_textcolor() wp-includes/theme.php | Displays the custom header text color in 3- or 6-digit hexadecimal form (minus the hash symbol). |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_header_textcolor