WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 4 months ago

#47683 closed enhancement (duplicate)

Enhancement: Add 'email_exists' filter similar to username_exists

Reported by: mikelopez Owned by:
Milestone: Priority: normal
Severity: normal Version: trunk
Component: Users Keywords: has-patch
Focuses: Cc:
PR Number:

Description

Now that we're allowing login using email address I think we should also add an email_exists filter similar to the existing username_exists one.

Reason for this request is I'm creating a plugin that allows for a shared user database across multiple WordPress installs hosted on different servers.

Said plugin also allows creating new users on any of the site which then syncs back the data to the shared user database. It is at this point that I find the need of an email_exists filter. I can easily check if the username exists by hooking into the username_exists filter but I can't do the same for email addresses.

I see that a request has already been made in #35509 and it was denied but I do hope my use case allows for it.

Thanks.

Attachments (2)

00000.diff (537 bytes) - added by mikelopez 4 months ago.
47683.diff (537 bytes) - added by mikelopez 4 months ago.
Corrected filename for the patch.

Download all attachments as: .zip

Change History (3)

@mikelopez
4 months ago

@mikelopez
4 months ago

Corrected filename for the patch.

#1 @SergeyBiryukov
4 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @mikelopez, welcome to WordPress Trac! Thanks for the ticket.

I see that a request has already been made in #35509 and it was denied but I do hope my use case allows for it.

That ticket is still open, just has not reached a consensus yet. It's better to keep the discussion in one place, so I'm closing this one as a duplicate. Please add your use case to #35509. Thanks!

Note: See TracTickets for help on using tickets.