[wp-trac] [WordPress Trac] #35509: Add filter `email_exists` in `email_exists` function

WordPress Trac noreply at wordpress.org
Thu Jul 11 14:07:54 UTC 2019


#35509: Add filter `email_exists` in `email_exists` function
-----------------------------------------------+---------------------------
 Reporter:  sebastian.pisula                   |       Owner:  (none)
     Type:  enhancement                        |      Status:  new
 Priority:  normal                             |   Milestone:  Awaiting
                                               |  Review
Component:  Users                              |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch close reporter-feedback  |     Focuses:
-----------------------------------------------+---------------------------

Comment (by mikelopez):

 Hey, I'm adding my case here from #47683 as per @SergeyBiryukov's advise.

 Also should I post my patch here as well?

 ---
 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.
 ---

 Thanks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/35509#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list