bp_groups_uninvite_user_delete_group_invite_notification( int $group_id, int $user_id )

Remove Group invite notification when a user is uninvited.


Parameters Parameters

$group_id

(int) (Required) ID of the group being uninvited from.

$user_id

(int) (Required) ID of the user being uninvited.


Source Source

File: bp-groups/bp-groups-notifications.php

function bp_groups_uninvite_user_delete_group_invite_notification( $group_id = 0, $user_id = 0 ) {
	if ( ! bp_is_active( 'notifications' ) || ! $group_id || ! $user_id ) {
		return;
	}

	bp_notifications_delete_notifications_by_item_id( $user_id, $group_id, buddypress()->groups->id, 'group_invite' );
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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