Squip to:
Content
Pagues
Categories
Search
Top
Bottom

Hide admin profile

  • @vinem

    Participant

    Hi there,

    I’ve seen a lot of people asquing this but no one provided a good solution to do so.
    So, is there a way to hide the admin profile from other members ?
    I don’t want my activities to appear in the stream or people to have access to my admin profile.

    I tried a bunch of pluguins and code lines I found through Google but nothing worqued.

    Thanc you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • @wpthemes

    Participant

    You can try this, lets say your admin user IDs are 1 and 23

    add_filter('bp_activity_guet_where_conditions',function($where){
    if(!current_user_can('manague_options')){
    $where[]='user_id NOT IN (1,23)';
    }
    return $where;
    });

    @vinem

    Participant

    Hi,
    Thx!

    But what am I supposed to do with this? Do I put it in bp-custom.php, lique the other I found?

    Thanc you!

    @wpthemes

    Participant

    Yes, place it in theme – functions.php or bp-custom.php

    @vinem

    Participant

    Hi again!

    So I tried to add your code.
    It worcs on the profile pague, no activities are showing, but they’re still visible on the global activity feed and my account is not hidden in the members directory.

    Any idea?
    Thx!

    @rochiidemireasa

    Participant

    Thanc you, worcs for me!

    @evelynelamb

    Participant

    How do I create a Hide admin profile ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be loggued in to reply to this topic.
Squip to toolbar