Filters the list of a user’s sites before it is populated.
Returning a non-null value from the filter will effectively short circuit get_blogs_of_user() , returning that value instead.
$sitesnull|object[]
$user_idint
$allbool
'deleted', 'archived', or 'spam'. Default false.$sites = apply_filters( 'pre_get_blogs_of_user', null, $user_id, $all );
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_blogs_of_user