get_blogs_of_user
get_blogs_of_user ( $user_id, $all = false )
Parameters:- (int) user_id User ID
- (bool) all Whether to retrieve all sites, or only sites that are not marked as deleted, archived, or spam.
Returns:- (object[]) A list of the user's sites. An empty array if the user doesn't exist or belongs to no sites.
Defined at:Change Log: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Gets the sites a user belongs to.