Posted By

telltec on 02/21/11


Tagged

wordpress wp user users member


Versions (?)

Check if user is logged in


 / Published in: PHP
 

URL: http://wordpress.org/support/topic/members-only-page

  1. <?php
  2. if ( is_user_logged_in() ) :
  3. echo 'some stuff for registrants!';
  4. else :
  5. echo 'some stuff for people not logged in.';
  6. endif;
  7. ?>

Report this snippet  

You need to login to post a comment.