bp_friends_remove_notifications_data( int $user_id )
Remove connection requests FROM user, used primarily when a user is deleted.
Description
Parameters
- $user_id
-
(Required) ID of the user whose notifications are removed.
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
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.