Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Hide Profile Group Tab from Admin if Level 1 (s2Member)

@shanebp

Moderator

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.

Skip to toolbar