friends_check_friendship( int $user_id, int $possible_friend_id )

Check whether two users are friends.


Parameters Parameters

$user_id

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

$possible_friend_id

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


Top ↑

Return Return

(bool) Returns true if the two users are friends, otherwise false.


Source Source

File: bp-friends/bp-friends-functions.php

function friends_check_friendship( $user_id, $possible_friend_id ) {

	if ( 'is_friend' == BP_Friends_Friendship::check_is_friend( $user_id, $possible_friend_id ) )
		return true;

	return false;
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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