_wp_admin_html_begin

The WordPress Core wp admin html begin function.

Description

_wp_admin_html_begin(); 

Usage

  1. if ( !function_exists( '_wp_admin_html_begin' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _wp_admin_html_begin(); 
  7.  

Defined (1)

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

/wp-admin/includes/template.php  
  1. function _wp_admin_html_begin() { 
  2. global $is_IE; 
  3.  
  4. $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : ''; 
  5.  
  6. if ( $is_IE ) 
  7. @header('X-UA-Compatible: IE=edge'); 
  8.  
  9. ?> 
  10. <!DOCTYPE html> 
  11. <!--[if IE 8]> 
  12. <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php 
  13. /** 
  14. * Fires inside the HTML tag in the admin header. 
  15. * @since 2.2.0 
  16. */ 
  17. ?> <?php language_attributes(); ?>> 
  18. <![endif]--> 
  19. <!--[if !(IE 8) ]><!--> 
  20. <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php 
  21. /** This action is documented in wp-admin/includes/template.php */ 
  22. ?> <?php language_attributes(); ?>> 
  23. <!--<![endif]--> 
  24. <head> 
  25. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 
  26. <?php