WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 !

share|improve this question

closed as off-topic by kaiser Aug 1 '14 at 23:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

"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() ) 
share|improve this answer

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