wphooks.info - get_blogs_of_user

get_blogs_of_user

(trunk - 5.0-alpha-42719)

The hook occurs in the following file:

wp-includes/user.php:
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
	/**
	 * Filters the list of sites a user belongs to.
	 *
	 * @since MU (3.0.0)
	 *
	 * @param array $sites   An array of site objects belonging to the user.
	 * @param int   $user_id User ID.
	 * @param bool  $all     Whether the returned sites array should contain all sites, including
	 *                       those marked 'deleted', 'archived', or 'spam'. Default false.
	 */
	return apply_filters( 'get_blogs_of_user', $sites, $user_id, $all );
}

/**
 * Find out whether a user is a member of a given blog.
 *
 * @since MU (3.0.0)
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *