bp_groups_uninvite_user_delete_group_invite_notification( int $group_id, int $user_id )
Remove Group invite notification when a user is uninvited.
Description
Parameters
- $group_id
-
(Required) ID of the group being uninvited from.
- $user_id
-
(Required) ID of the user being uninvited.
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' ); }
Changelog
Version | Description |
---|---|
BuddyPress 5.0.0 | BuddyPress 5.0.0 |
BuddyBoss 1.3.5 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.