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

In this article

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

return apply_filters( 'get_blogs_of_user', $sites, $user_id, $all );

Changelog

VersionDescription
MU (3.0.0)Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.