BP_Groups_Member::check_has_invite( int $user_id, int $group_id, string $type = 'sent' )
Check whether a user has an outstanding invitation to a given group.
Description Description
Parameters Parameters
- $user_id
-
(Required) ID of the potential invitee.
- $group_id
-
(Required) ID of the group.
- $type
-
(Optional) If 'sent', results are limited to those invitations that have actually been sent (non-draft). Default: 'sent'.
Default value: 'sent'
Return Return
(int|null) The ID of the invitation if found; null if not found.
Source Source
File: bp-groups/classes/class-bp-groups-member.php
public static function check_has_invite( $user_id, $group_id, $type = 'sent' ) { return groups_is_user_invited( $user_id, $group_id, $type ); }
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |