apply_filters( 'bp_friends_get_invite_list', array|bool $friends, int $user_id, int $group_id )

Filters the list of potential friends that can be invited to this group.

Description

Parameters

$friends

(array|bool) Array friends available to invite or false for no friends.

$user_id

(int) ID of the user checked for who they can invite.

$group_id

(int) ID of the group being checked on.

Source

File: bp-friends/bp-friends-functions.php

Changelog

Changelog
Version Description
BuddyPress 1.5.4 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.