WordPress at a glance
filter is not described

get_blogs_of_user filter-hook . WP MU

Filters the list of sites a user belongs to.

Usage

add_filter( 'get_blogs_of_user', 'filter_function_name_224', 10, 3 );
function filter_function_name_224( $sites, $user_id, $all ){
	// filter...

	return $sites;
}
$sites(array)
An array of site objects belonging to the user.
$user_id(int)
User ID.
$all(true/false)
Whether the returned sites array should contain all sites, including those marked 'deleted', 'archived', or 'spam'.
Default: false

Notes

  • Since MU (3.0.0)

Where the hook is called

get_blogs_of_user()
wp-includes/user.php 689
return apply_filters( 'get_blogs_of_user', $sites, $user_id, $all );

Where the hook is used (in WP core)

Does not used.