apply_filters( 'get_blogs_of_user', array $sites, int $user_id, bool $all )

Filters the list of sites a user belongs to.


Parameters

$sites

An array of site objects belonging to the user.

$user_id

User ID.

$all

Whether the returned sites array should contain all sites, including those marked 'deleted', 'archived', or 'spam'. Default false.


Source

File: wp-includes/user.php

View on GitHub



Changelog

Changelog
Version Description
WP-MU Introduced. (3.0.0)