friends_is_friendship_confirmed( int $friendship_id )
Has a friendship been confirmed (accepted)?
Description
Parameters
- $friendship_id
-
(Required) The ID of the friendship being checked.
Return
(bool) True if the friendship is confirmed, otherwise false.
Source
File: bp-friends/bp-friends-functions.php
function friends_is_friendship_confirmed( $friendship_id ) {
$friendship = new BP_Friends_Friendship( $friendship_id );
return $friendship->is_confirmed;
}
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.