do_action( 'friends_friendship_deleted', int $friendship_id, int $initiator_userid, int $friend_userid )

Fires before the friendship connection is removed.

Description

This hook is misleadingly named – the friendship is not yet deleted. This is your last chance to do something while the friendship exists.

Parameters

$friendship_id

ID of the friendship object, if any, between a pair of users.

$initiator_userid

ID of the friendship initiator.

$friend_userid

ID of the friend user.

Source

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

Changelog

Changelog
Version Description
BuddyPress 1.0.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.