bp_groups_remove_data_for_user_notifications( int $user_id )

Delete new group membership notifications when a user is being deleted.

Description

Parameters

$user_id

(int) (Required) ID of the user.

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
BuddyPress 1.9.0 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.