Show admin bar only for admins


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. if (!current_user_can('manage_options')) {
  2. add_filter('show_admin_bar', '__return_false');
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.