Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Hench / WP Check user logged in

By: a guest on Mar 4th, 2010  |  syntax: PHP  |  size: 0.18 KB  |  views: 442  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php global $user_ID;
  2.         get_currentuserinfo();?>
  3.         <?php if ( current_user_can('level_1') ) : ?>
  4.  
  5.                 // Do Something
  6.  
  7.         <?php else : ?>
  8.        
  9.                 // Do Something Else
  10.  
  11. <?php endif; ?>