-
Henry Wright replied to the topic How to not show certain roles in buddypress network at all? in the forum Creating & Extending 9 years, 12 months 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, 1 month 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 3 years, 12 months ago