wp_dashboard

Displays the dashboard.

Description

wp_dashboard(); 

Usage

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

Defined (1)

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

/wp-admin/includes/dashboard.php  
  1. function wp_dashboard() { 
  2. $screen = get_current_screen(); 
  3. $columns = absint( $screen->get_columns() ); 
  4. $columns_css = ''; 
  5. if ( $columns ) { 
  6. $columns_css = " columns-$columns"; 
  7.  
  8. ?> 
  9. <div id="dashboard-widgets" class="metabox-holder<?php echo $columns_css; ?>"> 
  10. <div id="postbox-container-1" class="postbox-container"> 
  11. <?php do_meta_boxes( $screen->id, 'normal', '' ); ?> 
  12. </div> 
  13. <div id="postbox-container-2" class="postbox-container"> 
  14. <?php do_meta_boxes( $screen->id, 'side', '' ); ?> 
  15. </div> 
  16. <div id="postbox-container-3" class="postbox-container"> 
  17. <?php do_meta_boxes( $screen->id, 'column3', '' ); ?> 
  18. </div> 
  19. <div id="postbox-container-4" class="postbox-container"> 
  20. <?php do_meta_boxes( $screen->id, 'column4', '' ); ?> 
  21. </div> 
  22. </div> 
  23.  
  24. <?php 
  25. wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 
  26. wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); 
  27.