/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php 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 } ?>