Make your Admin Bar hidden for non-logged users but visible for you.
| Author: | Tobias Lundgren (profile at wordpress.org) |
| WordPress version required: | |
| WordPress version tested: | 3.9.31 |
| Plugin version: | 1.0 |
| Added to WordPress repository: | 30-06-2014 |
| Last updated: | 30-06-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | http://www.lundgrendesign.se/private-admin-ba... |
| Total downloads: | 1 090 |
![]() Click to start download |
|
A simple way to makes your Admin Bar hidden for non-logged users but visible for you.
You can also add the code to your functions.php if you don’t want the plugin:
// Hide Admin Bar for non-logged users function hide_admin_bar() { if( is_user_logged_in() ){ return true; }else{ return false;
} }
add_filter(‘show_admin_bar’, ‘hide_admin_bar’);
