{"id":481,"date":"2011-07-21T10:37:58","date_gmt":"2011-07-21T20:37:58","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=481"},"modified":"2011-07-21T10:37:58","modified_gmt":"2011-07-21T20:37:58","slug":"hide-wordpress-admin-bar-by-default","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/hide-wordpress-admin-bar-by-default\/","title":{"rendered":"Hide WordPress Admin Bar by Default"},"content":{"rendered":"
When users register for a site, they are usually just registering to comment on a page. \u00a0This means they DO NOT need the admin bar at the top hiding a portion of your page.<\/p>\n
<\/p>\n
To get rid of this \u00a0you can add this to your functions page:<\/p>\n
<\/p>\n
\/\/ show admin bar only for admins and editors\nif (!current_user_can('edit_posts')) {\n\tadd_filter('show_admin_bar', '__return_false');\n}<\/pre>\n<\/p>\n
More solutions can be found here:<\/p>\n