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.
Description Description
Parameters 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 Return
(array) IDs of users who have been invited to the group by the user but have not yet accepted.
Source 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 Changelog
Version | Description |
---|---|
2.9.0 | Added $sent as a parameter. |
1.0.0 | Introduced. |