1<?php $user_info = get_userdata(1);
2 echo 'Username: ' . $user_info->user_login . "\n";
3 echo 'User roles: ' . implode(', ', $user_info->roles) . "\n";
4 echo 'User ID: ' . $user_info->ID . "\n";
5?>
6
1<?php $user_info = get_userdata(1);
2 $username = $user_info->user_login;
3 $first_name = $user_info->first_name;
4 $last_name = $user_info->last_name;
5 echo "$first_name $last_name logs into her WordPress site with the user name of $username.";
6?>
7