WordPress.org

GlotPress

Opened 2 years ago

Closed 18 months ago

#195 closed task (fixed)

Get user by email

Reported by: juanramondiaz Owned by: somebody
Milestone: Priority: normal
Version: Component: general
Keywords: needs-codex dev-feedback Cc:

Description

There was a function to get a user by login. I was creating a script to add new users (so I don't need a Wordpress installation to handle users) and I wanted to know if there was already a user with an specific e-mail.

I've done the unit test too. I attach the patch.

Attachments (1)

user_by_email.diff (1.2 KB) - added by juanramondiaz 2 years ago.

Download all attachments as: .zip

Change History (2)

juanramondiaz2 years ago

comment:1 westi18 months ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [721]) API: Allow for user lookup by email address via the GlotPress User object. Fixes #195 props juanramondiaz.

Note: See TracTickets for help on using tickets.