Skip to content

Instantly share code, notes, and snippets.

@eugenepyvovarov
Created December 19, 2013 12:59
Show Gist options
  • Save eugenepyvovarov/8038736 to your computer and use it in GitHub Desktop.
Save eugenepyvovarov/8038736 to your computer and use it in GitHub Desktop.
Only show admin bar to administrators
<?php
// Snippet code goes here!
if (!current_user_can('administrator')) :
show_admin_bar(false);
endif;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment