bp_friends_delete_activity_on_friendship_delete( int $friendship_id )
Remove friendship activity item when a friendship is deleted.
Description
Parameters
- $friendship_id
-
(Required) ID of the friendship.
Source
File: bp-friends/bp-friends-activity.php
447 448 449 | function bp_friends_delete_activity_on_friendship_delete( $friendship_id ) { friends_delete_activity( array ( 'item_id' => $friendship_id , 'type' => 'friendship_created' , 'user_id' => 0 ) ); } |
Changelog
Version | Description |
---|---|
BuddyPress 3.2.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.