• Resolved sandravmg

    (@sandravmg)


    Hi, we use your plugin to hide the Admin bar from some roles. After update it to Versión 3.2.1, the bar appears again and we can’t find how hide it. How can we hide the WordPress Admin bar?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi @sandravmg

    In order to hide admin bar on front-end, you can use this code snippet and add it at the end of your theme’s functions.php file:

    add_action('init', function() {
      if(current_user_can('custom_role')) {
        show_admin_bar(false);
      }
    });

    Hopefully, that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove WordPress admin bar’ is closed to new replies.