首页 WordPress函数大全 get_blogs_of_user()

get_blogs_of_user()

2020-05-01 / 2724阅 / 悠然

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

get_blogs_of_user( int $user_id, bool $all = false )

Get the sites a user belongs to.

描述

参数

$user_id

(int)
(Required)
User ID

$all

(bool)
(Optional)
Whether to retrieve all sites, or>Default value: false

返回

(array) A list of the user's sites. An empty array if the user doesn't exist or belongs to no sites.

大家谈论
    我的见解