WPDev.one
Core Function
View Source on Trac ↗

get_blog_details()

get_blog_details( mixed $fields = null, mixed $get_all = true )

Retrieves the details for a blog from the blogs table and blog options.

Parameters 2 required

Name / Type Description
mixed

(int | string | array) $fields Optional. A blog ID, a blog slug, or an array of fields to query against. Defaults to the current blog ID.

Required
bool

$get_all Whether to retrieve all details or only the details in the blogs table. Default is true.

Required

Return Value

((WP_Site)
| false) Blog details on success. False on failure.

Function Information

Since Version
MU (3.0.0)
Source File
wp-includes/ms-blogs.php
Advertisement