get_dashboard_blog

Get the "dashboard blog", the blog where users without a blog edit their profile data.

Description

(WP_Site) get_dashboard_blog(); 

Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.

Returns (WP_Site)

Current site object.


Usage

  1. if ( !function_exists( 'get_dashboard_blog' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_dashboard_blog(); 
  7.  

Defined (1)

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

/wp-includes/ms-deprecated.php  
  1. function get_dashboard_blog() { 
  2. _deprecated_function( __FUNCTION__, '3.1.0' ); 
  3. if ( $blog = get_site_option( 'dashboard_blog' ) ) { 
  4. return get_site( $blog ); 
  5.  
  6. return get_site( get_network()->site_id );