Exact matches only
Search in title
Search in content
Search in comments
Search in excerpt
Filter by Custom Post Type

Only show admin bar to administrators

Here a little snippet that will hide the wordpress admin bar from everybody except site admins. Useful for sites that have public registration turned on.