friends_get_friendship_id( int $initiator_user_id, int $friend_user_id )

Get the ID of two users’ friendship, if it exists.


Parameters Parameters

$initiator_user_id

(int) (Required) ID of the first user.

$friend_user_id

(int) (Required) ID of the second user.


Top ↑

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


Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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