How To Remove New WordPress Admin Bar Showing On Website

Hi Friends, Recently WordPress released 3.1 version and in that version wordpress bring new feature of admin bar which is showing on your website if you are logged into admin. It is good thing as new feature but this bar is not looking good for me, So I wanted to remove that bar from my wordpress, So I found two-line of code by which we can remove this from our site very easily.

So to remove wordpress admin bar all we have to do is just put these two lines into function.php file of your theme.

/* Disable the Admin Bar. */
add_filter( 'show_admin_bar', '__return_false' );
remove_action( 'personal_options', '_admin_bar_preferences' );

After putting these two lines in functions.php, you will see that admin bar is gone. If still it is showing admin bar on your site then it must be some cache problem , So clear cache and then check it. You will not see admin bar anymore.