Tag Info

New answers tagged

0

Use get_userdata() to retrieve all user data. The function accepts user ID. So the following code will give you the user url. <?php php $user_info = get_userdata(1); /* replace 1 with dynamic user id variable in your context*/ echo 'User url: ' . $user_info->user_url . "\n"; echo 'Users name: ' . $user_info->first_name . "\n"; ?>



Top 50 recent answers are included