WordPress at Your Fingertips
function is not described

WP_Customize_Manager::_sanitize_header_textcolor() public WP 3.4.0

Callback for validating the header_textcolor value.

Accepts 'blank', and otherwise uses sanitize_hex_color_no_hash(). Returns default text color if hex color is empty.

{} It's a method of the class: WP_Customize_Manager{}

No Hooks.

Return

Mixed.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->_sanitize_header_textcolor( $color );
$color(string) (required)
-

Changelog

Since 3.4.0 Introduced.

Code of WP_Customize_Manager::_sanitize_header_textcolor() WP 5.8.1

public function _sanitize_header_textcolor( $color ) {
	if ( 'blank' === $color ) {
		return 'blank';
	}

	$color = sanitize_hex_color_no_hash( $color );
	if ( empty( $color ) ) {
		$color = get_theme_support( 'custom-header', 'default-text-color' );
	}

	return $color;
}