-
Henry Wright replied to the topic How to not show certain roles in buddypress network at all? in the forum Creating & Extending 10 years ago
Not exactly what you need but check out this from one of the core developers.
-
Henry Wright replied to the topic Admin label in buddypress profiles in the forum Creating & Extending 10 years, 2 months ago
Hi @reinaldudras,
user_can()
is the function you need. For example:if ( user_can( bp_get_member_user_id(), 'manage_sites' ) )
echo 'network administrator';Note: Untested. There’s a slightly different method of getting the member’s ID depending on the exact context you need. I suspect
bp_get_member_user_id()
will work.Ref:…[Read more]
@reinaldudras
Active 4 years ago