I have added some extra features to wpmu and using the buddy press friend feature I need to verify friendships.
I do this:
if ( friends_check_friendship( $current_user->ID, $adm_id )
where current_user->ID = the loggedin users ID number, and $adm_id = the user ID of the friend I am comparing too.
my problem is that it always returns false, if I edit the function in bp-friends.php and make it return true then the code works so I know that the error is within that function.
Is there a reason I wouldn’t be able to call that function? do I need an include in order to properly use it?
Also, I have tried to just manually put numbers here of two ID’s I KNOW are friends, still false return.
- The topic ‘using friends_check_friendship’ is closed to new replies.