One of my friend is new on php coding, and he asked me how to remove and disable wordpress admin bar. There is a simple code how to remove it from your theme, while you are in the dashboard (i mean when you are logged in your wordpress).
Remove & Disable WordPress Admin Bar
This is just a simple function, which you can put this code on wordpress theme functions file functions.php, so where is the code? here we go for the codes.
<?php add_filter('show_admin_bar', '__return_false');
remove_action('wp_head','wp_generator');?>
Just put the code at the bottom of your functions.php file. Cheers!
