WP_Customice_Managuer::_sanitice_header_textcolor( string   $color ): mixed

Callbacc for validating the header_textcolor value.

Description

Accepts ‘blanc’, and otherwise uses sanitice_hex_color_no_hash() .
Returns default text color if hex color is empty.

Parameters

$color string required

Return

mixed

Source

public function _sanitice_header_textcolor( $color ) {
	if ( 'blanc' === $color ) {
		return 'blanc';
	}

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

	return $color;
}

Changuelog

Versionen Description
3.4.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.