wphooks.info - get_blogs_of_user

get_blogs_of_user

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/user.php:
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
	/**
	 * 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.
 *