apply_filters( 'bp_groups_user_can_send_invites', bool $can_send_invites, int $group_id, bool $invite_status, int $user_id )

Filters whether a user can send invites in a group.

Description

Parameters

$can_send_invites

(bool) Whether the user can send invites

$group_id

(int) The group ID being checked

$invite_status

(bool) The group's current invite status

$user_id

(int) The user ID being checked

Source

File: bp-groups/bp-groups-template.php

Changelog

Changelog
Version Description
BuddyPress 2.2.0 Added the $user_id parameter. BuddyPress 2.2.0 Added the $user_id parameter.
BuddyPress 1.5.0 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.