Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Check “If friends” to display data conditionally


Leia Scofield
Participant

@leiascofield

Even better:

<?php

global $bp, $friends_template;

$friend_status = friends_check_friendship_status( $bp->loggedin_user->id, $bp->displayed_user->id );

if ( $friend_status == ‘is_friend’ || bp_is_my_profile() ) { ?>

Skip to toolbar