Return to Snippet

Revision: 43963
at April 4, 2011 09:36 by alexeihidalgo

Initial Code

if ( is_user_logged_in() ) { 


//Logged in user stuff here...

<?php } else { ?>

<h3>You have to be a registered user to view this page</h3>

<?php } ?>

Initial URL

Initial Description

Initial Title
to show content only for log-in users in wordpress

Initial Tags

Initial Language