wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



display_header_text › WordPress Function

Od3.4.0
Przestarzałyn/a
display_header_text ( Brak parametrów )
Powrót:
  • (bool)
Zdefiniowane na:
Codex:

Whether to display the header text.



Źródło

function display_header_text() {
	if ( ! current_theme_supports( 'custom-header', 'header-text' ) ) {
		return false;
	}

	$text_color = get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
	return 'blank' !== $text_color;
}