bp_friends_clear_request_cache_on_remove( int $friendship_id, BP_Friends_Friendship $friendship )

Clear the friend request cache when a friendship is removed.

Description

A friendship is deemed removed when a friendship is withdrawn or rejected.

Parameters

$friendship_id

(Required) The friendship ID.

$friendship

(Required) Friendship object.

Source

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

function bp_friends_clear_request_cache_on_remove( $friendship_id, BP_Friends_Friendship $friendship ) {
	bp_friends_clear_request_cache( $friendship->friend_user_id );
}

Changelog

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