[wp-trac] [WordPress Trac] #51379: Add filter to function email_exists()

WordPress Trac noreply at wordpress.org
Thu Oct 15 00:14:16 UTC 2020


#51379: Add filter to function email_exists()
---------------------------------------------+-----------------------------
 Reporter:  apermo                           |       Owner:  SergeyBiryukov
     Type:  feature request                  |      Status:  closed
 Priority:  normal                           |   Milestone:  5.6
Component:  Users                            |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note commit  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:18 garrett-eclipse]:
 > I'm ok with it off, just see it as a way to link the two together in doc
 spaces and indicate the function can now behave differently than expected
 if anything has hooked into that filter.

 I think they would still be linked the same way that `username_exists()`
 currently links to the `username_exists` filter in the
 [https://developer.wordpress.org/reference/functions/username_exists/#related
 "Uses" section].

 I'm not strongly opposed to adding it to the function, it just seems like
 we don't generally do that for new hooks, as that partially duplicates the
 hook documentation.

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


More information about the wp-trac mailing list