функция
since 3.4.0
display_header_text()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
display_header_text(): bool
Описание
Отображать ли текст заголовка.
Возвращаемое значение
bool
Исходный код
wp-includes/theme.php:1201
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;
}
История изменений
| Версия | Описание |
|---|---|
| 3.4.0 | Introduced. |

