get_header_textcolor
Retrieves the custom header text color in HEX format.
Description
(string) get_header_textcolor();
Returns (string)
Header text color in HEX format (minus the hash symbol).
Usage
if ( !function_exists( 'get_header_textcolor' ) ) { require_once ABSPATH . WPINC . '/theme.php'; } // NOTICE! Understand what this does before running. $result = get_header_textcolor();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/theme.php
- function get_header_textcolor() {
- return get_theme_mod('header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
- }