bp_friends_remove_notifications_data( int $user_id )

Remove friendship requests FROM user, used primarily when a user is deleted.


Parameters Parameters

$user_id

(int) (Required) ID of the user whose notifications are removed.


Source Source

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

function bp_friends_remove_notifications_data( $user_id = 0 ) {
	bp_notifications_delete_notifications_from_user( $user_id, buddypress()->friends->id, 'friendship_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.