Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to check if friendship exists between two members?

  • Avatar of Decisionc
    Decisionc
    Participant

    @decisionc

    Just like there is a function to check if you are viewing your profile page, bp_is_home(), is there a similar function to check if you are viewing a friends page?

    If not, how would I check if a friendship exists?

Viewing 1 replies (of 1 total)
  • Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    You can check to see if a friendship exists with:

    function friends_check_friendship( $user_id, $possible_friend_id )

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.