Disable Wordpress Admin Bar for All Users

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

Add the following file to your theme's function.php file

Copy this code and paste it in your HTML
  1. function my_function_admin_bar(){
  2. return false;
  3. }
  4. add_filter( 'show_admin_bar' , 'my_function_admin_bar');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.