Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Hide members for other members

@henrywright

Moderator

Hi @delphy69

Try adding this to your theme’s functions.php file

function hide_member_profiles() {
    if ( bp_is_user_profile() && ! current_user_can( 'manage_options' ) )
        bp_core_redirect( home_url() );
}
add_action( 'template_redirect', 'hide_member_profiles', 1 );
Skip to toolbar