bp_friends_clear_request_cache_on_save( int $friendship_id, int $initiator_user_id, int $friend_user_id )
Clear the friend request cache when a friendship is saved.
Description Description
A friendship is deemed saved when a friendship is requested or accepted.
Parameters Parameters
- $friendship_id
-
(int) (Required) The friendship ID.
- $initiator_user_id
-
(int) (Required) The user ID initiating the friendship.
- $friend_user_id
-
(int) (Required) The user ID not initiating the friendship.
Source Source
File: bp-friends/bp-friends-cache.php
function bp_friends_clear_request_cache_on_save( $friendship_id, $initiator_user_id, $friend_user_id ) { bp_friends_clear_request_cache( $friend_user_id ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |