Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,892
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
Please use the code when sharing code.
current_user_xxx refers to the logged in user – not the displayed user.
Use is_super_admin() to determine if the current user is a site admin.
https://codex.wordpress.org/Function_Reference/is_super_admin
$displayed_user_level = some_s2_function( bp_displayed_user_id() );
if( is_super_admin() && $displayed_user_level == 'some level' ) )
some_s2_function is whatever s2 function returns the member level based on a user_id.