pre_get_blogs_of_user

Advertisement

Summery Summery

Filters the list of a user’s sites before it is populated.

Syntax Syntax

apply_filters( 'pre_get_blogs_of_user', null|array $sites, int $user_id, bool $all )

Description Description

Passing a non-null value to the filter will effectively short circuit get_blogs_of_user(), returning that value instead.

Parameters Parameters

$sites

An array of site objects of which the user is a member.

$user_id

User ID.

$all

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

Source Source

File: wp-includes/user.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply