On this page
apply_filters( 'get_blogs_of_user', object[] $sites, int $user_id, bool $all )
Filters the list of sites a user belongs to.
Parameters
$sitesobject[]-
An array of site objects belonging to the user.
$user_idint-
User ID.
$allbool-
Whether the returned sites array should contain all sites, including those marked
'deleted','archived', or'spam'. Default false.
Source
File: wp-includes/user.php. View all references
return apply_filters( 'get_blogs_of_user', $sites, $user_id, $all );
Related
Used By
| Used By | Description |
|---|---|
| get_blogs_of_user() wp-includes/user.php | Gets the sites a user belongs to. |
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_blogs_of_user