I would like to show you how to disable or hide the admin bar in your WordPress application. Just put the blow line of code in your current WordPress theme’s function.php file. It will prevent the toolbar from rendering on the front end of your site.

The following lines will only display the admin bar for users with administrative privileges.

That’s it for Today.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

Published by Arjun

I am Arjun from Hyderabad (India). I have been working as a software engineer from last 7+ years, and its my passion to learn new things and implement them as a practice. Aside from work, I likes gardening and spending time with pets.

Leave a comment

Your email address will not be published. Required fields are marked *