If user is logged in show

Description

This code will show a information depending on if the user is logged in or not. This can be used for Login/Logout Links so that if the user is logged in the message will say logout and vice versa

This code will show a information depending on if the user is logged in or not. This can be used for Login/Logout Links so that if the user is logged in the message will say logout and vice versa

PHP Source Code

                        
                          <?php if (is_user_logged_in()) { ?>

Show this if user is logged in

<?php } else { // not logged in ?>

Show this if user is NOT logged in

<?php } ?>                        
                        


Post Categories