I am currently working with the REST API and have the need to get_userdata()
but instead of the user_id
I have the username
I also have their email if that helps.
Question: Is this possible within the core functionality of WordPress? If not is there a round about way to get user info via username and then get the user_id from that to do the get_userdata call?