SHARE
TWEET

Hench / WP Check user logged in

a guest Mar 4th, 2010 443 Never
  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; ?>
RAW Paste Data
Top