display_header

Display install header.

Description

display_header( (string) $body_classes = '' ); 

Parameters (1)

0. $body_classes — Optional. (string) => ''
The body classes.

Usage

  1. if ( !function_exists( 'display_header' ) ) { 
  2. require_once ABSPATH . '/wp-admin/install.php'; 
  3.  
  4. // The body classes. 
  5. $body_classes = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = display_header($body_classes); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/install.php  
  1. function display_header( $body_classes = '' ) { 
  2. header( 'Content-Type: text/html; charset=utf-8' ); 
  3. if ( is_rtl() ) { 
  4. $body_classes .= 'rtl'; 
  5. if ( $body_classes ) { 
  6. $body_classes = ' ' . $body_classes; 
  7. ?> 
  8. <!DOCTYPE html> 
  9. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 
  10. <head> 
  11. <meta name="viewport" content="width=device-width" /> 
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  13. <meta name="robots" content="noindex, nofollow" /> 
  14. <title><?php _e( 'WordPress › Installation' ); ?></title> 
  15. <?php 
  16. wp_admin_css( 'install', true ); 
  17. wp_admin_css( 'dashicons', true ); 
  18. ?> 
  19. </head> 
  20. <body class="wp-core-ui<?php echo $body_classes ?>"> 
  21. <p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p> 
  22.  
  23. <?php