bp_friends_clear_request_cache( int $friend_user_id )
Clear the friend request cache for the user not initiating the friendship.
Description
Parameters
- $friend_user_id
-
(Required) The user ID not initiating the friendship.
Source
File: bp-friends/bp-friends-cache.php
function bp_friends_clear_request_cache( $friend_user_id ) { wp_cache_delete( $friend_user_id, 'bp_friends_requests' ); }
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.