Function Get User Object By Username?

Which function can be used to get the user’s object using the username? I’ve tried get_userdatabylogin() but the function seemed to throw an error:

Parse error, unexpected T_STRING on line xx

Read More

The function was called like so:

get_userdatabylogin($username);

Related posts

Leave a Reply

1 comment