wordpress / latest / functions / get_dashboard_blog.html

get_dashboard_blog(): WP_Site

This function has been deprecated. Use get_site() instead.

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

Description

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

See also

Return

WP_Site Current site object.

Source

File: wp-includes/ms-deprecated.php. View all references

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 );
}

Uses

Uses Description

Changelog

Version Description
3.1.0 Use get_site()
MU (3.0.0) Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_dashboard_blog