bp_groups_remove_data_for_user_notifications( int $user_id )
Delete new group membership notifications when a user is being deleted.
Description Description
Parameters Parameters
- $user_id
-
(Required) ID of the user.
Source Source
File: bp-groups/bp-groups-notifications.php
function bp_groups_remove_data_for_user_notifications( $user_id ) {
if ( bp_is_active( 'notifications' ) ) {
bp_notifications_delete_notifications_from_user( $user_id, buddypress()->groups->id, 'new_membership_request' );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |