WordPress Function for Hide Admin Bar

Here is the simplest way to hide that wordpress admin bar from the top of your page.

Add the following code to your active theme functions.php

{code type=’php’}<?php show_admin_bar( false ); ?>{/code}

This is compatible with WordPress 3.1.0 and above. If you are still using versions lower than 3.1.0, you could check out my other post on other ways on how to hide the admin bar.


Reference: Function Reference/show admin bar

Recommended Posts