bp_friends_delete_activity_on_friendship_delete( int $friendship_id )

Remove friendship activity item when a friendship is deleted.

Description

Parameters

$friendship_id

(int) (Required) ID of the friendship.

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 ) );
}

Changelog

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.