User ID from username

$user = get_userdatabylogin('admin');
if($user) echo $user->ID;

0 Comments

You must be logged in to post a comment.