How can I hide some specific contents or div or other stuff depending on being friend or not in buddypress ??

I tried to use the bp_is_user_friends() function but it did not work !

  • "hide some specific contents or div or other stuff" is not very specific. Please add some more detail. Are you editing theme templates? Post the code you've tried, even if it didn't work. – s_ha_dum Apr 18 '13 at 16:30
  • yes i wanna show a div content if user who is watching my profile page is my friend if not so it wont be showed to him/her. – federico Apr 18 '13 at 17:22
  • Welcome, @federico, please refer to this small guides: About and How to Ask. . . . – brasofilo Apr 18 '13 at 17:40

Returns true or false

friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) 

Not the answer you're looking for? Browse other questions tagged or ask your own question.