Skip to main content

Filter: get_blogs_of_user

Replicates the original WP Filter here, for good measure.

Filters the list of sites a user belongs to.

Parameters

NameTypeDescription
$sitesobject[]An array of site objects belonging to the user.
$user_idintUser ID.
$allboolWhether the returned sites array should contain all sites, including those marked 'deleted', 'archived', or 'spam'. Default false.

Since

  • 2.0.11

Source

Defined in inc/managers/class-site-manager.php at line 1030