Disable the Admin Bar in WordPress

You are here: Home » Blog » CMS » WordPress » Disable the Admin Bar in WordPress

Disable the Admin Bar in WordPress

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

By |2019-02-08T19:25:45-04:00March 19th, 2018|Categories: CMS, WordPress|Tags: , , , , , |

About the Author:

I am a loving father, & husband. I am a computer enthusiast. I have used and enjoyed computers since I was young and I enjoy teaching young minds how to code, because it teaches them how to think. Today with YouTube, and social media garbage our youth are losing the ability to think on their own and solve problems. I believe this is a serious epidemic as kids today dont understand that technology is a tool. This tool is being abused, and its underlying effects are taking its toll on kids behaviour, and learning.