1

Im looking to get user information by email address using the latest version of the wordpress restapi.
I have registered the user email field and it returns on both the "/wp-json/wp/v2/users/" and the "/wp-json/wp/v2/users/" calls but im looking for a way to basically get user by email. I cant seem to find a way to filter or search by email field though, any thoughts?

4

You can use the search argument

https://example.com/wp-json/wp/v2/users/?search=myemail@domain.com

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.