Uses
| Uses | Description |
|---|---|
| wp-includes/theme.php: get_theme_support() | Gets the theme support arguments passed when registering that support. |
| wp-includes/theme.php: get_theme_mod() | Retrieves theme modification value for the current theme. |
Retrieves the custom header text color in 3- or 6-digit hexadecimal form.
(string) Header text color in 3- or 6-digit hexadecimal form (minus the hash symbol).
File: wp-includes/theme.php
function get_header_textcolor() {
return get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
} | Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_header_textcolor