get_blogs_of_user

最后更新于:2021-11-26 11:12:53

apply_filters( ‘get_blogs_of_user’, object[] $sites, int $user_id, bool $all )

Filters the list of sites a user belongs to.

参数

$sites

(object[])
An array of site objects belonging to the user.

$user_id

(int)
User ID.

$all

(bool)
Whether the returned sites array should contain all sites, including those marked ‘deleted’, ‘archived’, or ‘spam’. Default false.

源文件

文件: gc-includes/user.php

View on Trac