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:
  • 4: .

Description

Gets the sites a user belongs to.

Related Functions

get_active_blog_for_user, get_blog_post, get_blog_count, get_blog_id_from_url, get_blog_status

Top Google Results

User discussions

wpseek mobile