Function Reference/get blog details
Description
Retrieve the details for a blog from the blogs table and blog options.
Usage
<?php get_blog_details( $fields, $get_all ); ?>
Parameters
- $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: null
- $get_all
- (boolean) (optional) Whether to retrieve all details or only the details in the blogs table.
- Default: true
Return Value
- (WP_Object_Cache object)
- Blog details
Examples
Notes
Uses global $wpdb
Changelog
Since: 3.0.0
Source File
get_blog_details() is located in wp-includes/ms-blogs.php.
Related