Skip to content

Instantly share code, notes, and snippets.

@wildiney
Created January 26, 2012 00:47
Show Gist options
  • Save wildiney/1680076 to your computer and use it in GitHub Desktop.
Save wildiney/1680076 to your computer and use it in GitHub Desktop.
Wordpress - Barra de admin visivel somente para administradores
<?php
if (!current_user_can('manage_options')) {
add_filter('show_admin_bar', '__return_false');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment