Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Wordpress disable admin bar to users except admin

add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
  show_admin_bar(false);
}
}
Source by www.wpbeginner.com #
 
PREVIOUS NEXT
Tagged: #Wordpress #disable #admin #bar #users #admin
ADD COMMENT
Topic
Name
2+7 =