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.


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
1.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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