Answers for "function to fetch user details"

PHP
0

function to fetch user details

$user = get_user_by( 'email', '[email protected]' );
$user = get_user_by('login', $username);
echo 'User is ' . $user->first_name . ' ' . $user->last_name;
Posted by: Guest on October-29-2021

Browse Popular Code Answers by Language