Skip to:
Content
Pages
Categories
Search
Top
Bottom

login fails and no html formatting options

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

  • Sankalan
    Participant

    @sankalan

    My first issue (the login issue) has been solved but I have just noticed another issue. Registered users can actually visit the dashboard. Though dashboard access is restricted and allows only to edit the profile page, I don’t want that to happen. How to prevent that from happening?


    Robin W
    Moderator

    @robin-w

    Though dashboard access is restricted and allows only to edit the profile page, I don’t want that to happen. How to prevent that from happening?

    add the following to your functions file

    //disable toolbar for non-admins
    if (!current_user_can('manage_options')) {
    show_admin_bar(false);
    }
    
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar