首页 WordPress函数大全 get_blog_details()

get_blog_details()

2020-05-01 / 3751阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

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

描述

参数

$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>Default value: true

返回

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

大家谈论
    我的见解