Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: If displayed_user_can then ….


Anonymous User 96400
Inactive

@anonymized-96400

well, you could check against usermeta for example:

`global $bp;
$meta = get_usermeta( $bp->displayed_user->id, ‘member_status’ );
if( $meta == ‘premium’ )
{
//do stuff, like showing a badge
}
else
{
//show something else or do nothing
}`

doing something like this in a loop will add a lot of database calls though. also in a loop you won’t be able to use $bp->displayed_user->id.

you could also check against profile field data.

Skip to toolbar