setup_config_display_header()
Display setup wp-config.php file header.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
setup_config_display_header( $body_classes );
- $body_classes(строка|string[])
- Class attribute values for the body tag.
По умолчанию: array()
Список изменений
С версии 2.3.0 | Введена. |
Код setup_config_display_header() setup config display header WP 6.7.1
<?php function setup_config_display_header( $body_classes = array() ) { $body_classes = (array) $body_classes; $body_classes[] = 'wp-core-ui'; $dir_attr = ''; if ( is_rtl() ) { $body_classes[] = 'rtl'; $dir_attr = ' dir="rtl"'; } header( 'Content-Type: text/html; charset=utf-8' ); ?> <!DOCTYPE html> <html<?php echo $dir_attr; ?>> <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 › Setup Configuration File' ); ?></title> <?php wp_admin_css( 'install', true ); ?> </head> <body class="<?php echo implode( ' ', $body_classes ); ?>"> <p id="logo"><?php _e( 'WordPress' ); ?></p> <?php } // End function setup_config_display_header();