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'


Top ↑

Return Return

(int|null) The ID of the invitation if found; null if not found.


Top ↑

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

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.