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.

Parameters Parameters


(int) (Required) ID of the potential invitee.


(int) (Required) ID of the group.


(string) (Optional) If 'sent', results are limited to those invitations that have actually been sent (non-draft). Default: 'sent'.

Default value: 'sent'

Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.