How to remove WordPress 3.1 admin bar

Paste the following piece of code into your functions.php file, save it and goodbye admin bar.

wp_deregister_script('admin-bar');
wp_deregister_style('admin-bar');
remove_action('wp_footer','wp_admin_bar_render',1000);

Thanks to Specky Boy for the tip!

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!

How to remove WordPress 3.1 admin bar