Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable admin-panel when user is not logged in?


  • fatoom
    Participant

    @fatoom

    I want to disable the admin panel that is on the top of the page when user is not logged in. Can anyone help me with that?

    admin-panel

Viewing 2 replies - 1 through 2 (of 2 total)

  • fatoom
    Participant

    @fatoom

    add_filter( ‘show_admin_bar’, ‘__return_false’ );
    This code has done what I neded!


    Venutius
    Moderator

    @venutius

    There’s a setting for that in Settings>BuddyPress>Options – Show Toolbar to logged out users.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar