matthijs166
10/18/2017 - 8:30 AM

Wordpress check logged in

if statement of the user is logged in

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