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 Description

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


Top ↑

Parameters Parameters

$friendship_id

(int) (Required) The friendship ID.

$friendship

(BP_Friends_Friendship) (Required) Friendship object.


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


Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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