Posted By

florent on 10/07/11


Tagged

wordpress admin


Versions (?)

Remove WordPress Admin Bar - Enlever la barre d'administration de Wordpress


 / Published in: PHP
 

  1. <?php
  2. global $current_user;
  3. get_currentuserinfo();
  4.  
  5. if ($current_user->ID != 1) {
  6. add_filter( 'show_admin_bar', '__return_false' );
  7. }
  8. ?>

Report this snippet  

You need to login to post a comment.