bp_friends_remove_notifications_data( int $user_id )
Remove friendship requests FROM user, used primarily when a user is deleted.
Description Description
Parameters Parameters
- $user_id
-
(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' );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |