get_blog_details

SummerySummery

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

Syntax

get_blog_details( int|string|array $fields = null, bool $get_all = true )

ParametersParameters

$fields

(int|string|array) (Optional) A blog ID, a blog slug, or an array of fields to query against. If not specified the current blog ID is used.

Default value: null

$get_all

(bool) (Optional) Whether to retrieve all details or only the details in the blogs table. Default is true.

Default value: true

ReturnReturn

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

SourceSource

File: wp-includes/ms-blogs.php


			

ChangelogChangelog

Changelog
Version Description
MU (3.0.0) Introduced.
Scroll to Top