функция
since 2.5.0
display_header()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
display_header( string $body_classes = '' )
Описание
Отображает заголовок установки.
Параметры
$body_classes
string
необязательный
= ''
Значения атрибута class для тега body.
Исходный код
wp-admin/install.php:57
function display_header( $body_classes = '' ) {
header( 'Content-Type: text/html; charset=utf-8' );
if ( is_rtl() ) {
$body_classes .= 'rtl';
}
if ( $body_classes ) {
$body_classes = ' ' . $body_classes;
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex,nofollow" />
<title><?php _e( 'WordPress › Installation' ); ?></title>
<?php wp_admin_css( 'install', true ); ?>
</head>
<body class="wp-core-ui admin-color-modern<?php echo $body_classes; ?>">
<p id="logo"><?php _e( 'WordPress' ); ?></p>
<?php
} // End display_header().
История изменений
| Версия | Описание |
|---|---|
| 2.5.0 | Introduced. |

