Puddinq.com sharing knowledge

Admin bar

Admin bar

<?php
add_action('after_setup_theme', 'remove_admin_bar', 200);

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