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.


Parameters Parameters

$user_id

(int) (Required) ID of the inviting user.

$group_id

(int) (Required) ID of the group.

$sent

(int|null) (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


Top ↑

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


Top ↑

Changelog Changelog

Changelog
Version Description
2.9.0 Added $sent as a parameter.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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