• Brian Jones

    (@riverhouseadmin)


    I used to just alter the functions.php with this code:

    add_action(‘after_setup_theme’, ‘remove_admin_bar’);

    function remove_admin_bar() {
    if (!current_user_can(‘administrator’) && !is_admin()) {
    show_admin_bar(false);
    }
    }

    but now I can specify which wordpress roles I want to remove the bar from.

  • The topic ‘Works well’ is closed to new replies.