setup_config_display_header

Display setup wp-config.php file header.

Description

setup_config_display_header( (array) $body_classes = array() ); 

Parameters (1)

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

Usage

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

Defined (1)

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

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