Skip to main content

Why the user can enter in wordpress dashboard ????

Is big secutity problem

Why the user can enter in wordpress dashboard ????

Andrey A.

use FluentAuth: "Disable admin bar and /wp-admin/ access for selected user roles."

Kevin Watson

I use the "Members" plugin to create roles and you can remove toolbar access to anyone who is not an admin.

Jonathan Gwyer

Liking that one, thanks Kevin WatsonΒ 

Kaneisha G.

Ross FCAΒ do any of your plugins address this issue? I would love to avoid installing a plugin just to address this one thing.

Thomas Oates

    add_action('after_setup_theme', 'disable_admin_bar');
    function disable_admin_bar() {
        if (current_user_can('administrator') ) {
            show_admin_bar(true);
        } else {
            show_admin_bar(false);
        }
    }