bp_friends_delete_activity_on_friendship_delete( int $friendship_id )

Remove friendship activity item when a friendship is deleted.


Parameters Parameters

$friendship_id

(int) (Required) ID of the friendship.


Source Source

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

function bp_friends_delete_activity_on_friendship_delete( $friendship_id ) {
	friends_delete_activity( array( 'item_id' => $friendship_id, 'type' => 'friendship_created', 'user_id' => 0 ) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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