friends_get_friendship_id( int $initiator_user_id, int $friend_user_id )
Get the ID of two users’ friendship, if it exists.
Description Description
Parameters Parameters
- $initiator_user_id
-
(Required) ID of the first user.
- $friend_user_id
-
(Required) ID of the second user.
Return Return
(int|null) ID of the friendship if found, otherwise false.
Source Source
File: bp-friends/bp-friends-functions.php
function friends_get_friendship_id( $initiator_user_id, $friend_user_id ) { return BP_Friends_Friendship::get_friendship_id( $initiator_user_id, $friend_user_id ); }
Changelog Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |