pre_get_blogs_of_user

最后更新于:2021-11-27 18:47:56

apply_filters( ‘pre_get_blogs_of_user’, null|object[] $sites, int $user_id, bool $all )

Filters the list of a user’s sites before it is populated.

参数

$sites

(null|object[])
An array of site objects of which the user is a member.

$user_id

(int)
User ID.

$all

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

源文件

文件: gc-includes/user.php

View on Trac