Posted By

javifr on 10/29/10


Tagged

wordpress user


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vehler


get User info & conditionals


 / Published in: PHP
 

  1. global $current_user;
  2. get_currentuserinfo();
  3.  
  4. //...
  5. if($current_user->user_level == 2){
  6.  
  7. //
  8. if($current_user->user_login == "manuelito"){
  9.  
  10.  
  11. //USER LEVELS: http://codex.wordpress.org/User_Levels

Report this snippet  

You need to login to post a comment.