Title: get_dashboard_blog
Published: April 25, 2014
Last modified: February 24, 2026

---

# get_dashboard_blog(): 󠀁[WP_Site](https://developer.wordpress.org/reference/classes/wp_site/)󠁿

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#see-also)
 * [Return](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#wp--skip-link--target)

This function has been deprecated since 3.1.0. Use [get_site()](https://developer.wordpress.org/reference/functions/get_site/)
instead.

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

## 󠀁[Description](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#description)󠁿

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

### 󠀁[See also](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#see-also)󠁿

 * [get_site()](https://developer.wordpress.org/reference/functions/get_site/)

## 󠀁[Return](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#return)󠁿

 [WP_Site](https://developer.wordpress.org/reference/classes/wp_site/) Current site
object.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#source)󠁿

    ```php
    function get_dashboard_blog() {
        _deprecated_function( __FUNCTION__, '3.1.0', 'get_site()' );
        if ( $blog = get_site_option( 'dashboard_blog' ) ) {
    	    return get_site( $blog );
        }

        return get_site( get_network()->site_id );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ms-deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/ms-deprecated.php#L26)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/ms-deprecated.php#L26-L33)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#related)󠁿

| Uses | Description | 
| [get_network()](https://developer.wordpress.org/reference/functions/get_network/)`wp-includes/ms-network.php` |

Retrieves network data given a network ID or network object.

  | 
| [get_site()](https://developer.wordpress.org/reference/functions/get_site/)`wp-includes/ms-site.php` |

Retrieves site data given a site ID or site object.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  | 
| [get_site_option()](https://developer.wordpress.org/reference/functions/get_site_option/)`wp-includes/option.php` |

Retrieve an option value for the current network based on name of option.

  |

[Show 2 more](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/get_dashboard_blog/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Deprecated. Use [get_site()](https://developer.wordpress.org/reference/functions/get_site/)  | 
| [MU (3.0.0)](https://developer.wordpress.org/reference/since/mu.3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_dashboard_blog%2F)
before being able to contribute a note or feedback.