Viewing 1 replies (of 1 total)
  • Plugin Author Marcel Bootsman ????

    (@mbootsman)

    Hi,

    thanks for your request.
    Completely disabling the toolbar for certain users (roles) is not in scope of this plugin. We like to hide it and show it on request ??

    But, to help you, please look at the code below, which disables the toolbar for non admin users:

    add_action('after_setup_theme', 'remove_toolbar');
    
    function remove_toolbar() {
       if (!current_user_can('administrator') && !is_admin()) {
          show_admin_bar(false);
       }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Can the bar be disabled for all members except admin?’ is closed to new replies.