Filter hook 'get_blogs_of_user'

in WP Core File wp-includes/user.php at line 1063

Description

Filters the list of sites a user belongs to.

Occurrences

Filename Line Number
wp-includes/user.php 1063

Parameters

Type Name Description
object[] $sites An array of site objects belonging to the user.
int $user_id User ID.
bool $all Whether the returned sites array should contain all sites, including those marked 'deleted', 'archived', or 'spam'. Default false.

PHP Doc

/**
	 * Filters the list of sites a user belongs to.
	 *
	 * @since MU (3.0.0)
	 *
	 * @param object[] $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.
	 */