Disable the Admin Bar in WordPress: The WordPress Admin Bar provides handy links to several key functions such as the ability to add new posts and pages, etc.

However, if you find no use for it and wish to remove it, simply paste the following code snippet to your functions.php file:

// Remove the admin bar from the front end
add_filter( 'show_admin_bar', '__return_false' );

Note: The // followed by text is documentation in PHP. Documentation or AKA comments are placed for humans reference notes they are not instructions for the computer. Documentation in your code is handy because it explains what your code does when you look back from the future… No really some projects get to be thousands of lines of code and documentation is standard practice.)

Related Posts:

Should I Choose a Hosted or Non-hosted Blogging Platform?

How do I install plugins in WordPress?

Redirect New Registered Users to a Specific Page – WordPress

Choose your preferred blog CMS platform

Formatting Text in WordPress Posts (Tiny MCE Advanced for WordPress)

Change the Author Permalink Structure

How do I start a WordPress blog? (hosting wordpress)

Paginate Your WordPress Site Without Plugins

Google’s “Grasshopper” Mobile Game Teaches Adults How To Code In An Easy, Accessible Way — And It’s Free

Create a PayPal Donation Shortcode – WordPress

WordPress, SEO, and Social Media Marketing

How do I create money online using WordPress?

Disable Search in WordPress

WordPress Posts vs Pages

How to Update: Automatically create media_buttons for shortcode selection

Automatically Link to Twitter Usernames in Content

How to make a Go-Back Input button with inline JavaScript

Show Popular Posts Without Plugins

WordPress by the Numbers Facts