<?php
if ( is_user_logged_in() ) {
$current_user = wp_get_current_user();

echo 'Welcome, ' . $current_user->user_login . '!';

} else {
echo ‘Welcome, visitor!’;

}
?>

sao

error: Content is protected !!