WordPress User Logged In

html-logo


<?php
if ( is_user_logged_in() ) {
    echo 
'Welcome, registered user!';
} else {
    echo 
'Welcome, visitor!';
};
?>

Leave a Reply