groups_get_invites_for_group( int $user_id, int $group_id, int|null $sent = null )
Get IDs of users with outstanding invites to a given group from a specified user.
Description
Parameters
- $user_id
-
(Required) ID of the inviting user.
- $group_id
-
(Required) ID of the group.
- $sent
-
(Optional) Query for a specific invite sent status. If 0, this will query for users that haven't had an invite sent to them yet. If 1, this will query for users that have had an invite sent to them. If null, no invite status will queried. Default: null.
Default value: null
Return
(array) IDs of users who have been invited to the group by the user but have not yet accepted.
Source
File: bp-groups/bp-groups-functions.php
function groups_get_invites_for_group( $user_id, $group_id, $sent = null ) { return BP_Groups_Group::get_invites( $user_id, $group_id, $sent ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.9.0 Added $sent as a parameter. | BuddyPress 2.9.0 Added $sent as a parameter. |
BuddyPress 1.0.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.