Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
    
"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
add comment

1 Answer

Returns true or false

friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) 
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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