[wp-trac] [WordPress Trac] #43029: Filter "send_email_change_email" is never called
WordPress Trac
noreply at wordpress.org
Fri May 24 22:44:07 UTC 2019
#43029: Filter "send_email_change_email" is never called
--------------------------+----------------------
Reporter: flymike | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Users | Version: 4.9.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Comment (by SergeyBiryukov):
Replying to [ticket:43029 flymike]:
> The purpose of the "send_email_change_email" filter is to allow the
optional suppression of the warning email sent when a user changes their
email address.
>
> However, that warning email is sent by function
send_confirmation_on_profile_email() at user.php line 2623 - which gets
called ''before'' the apply_filters for send_email_change_email is called
by function wp_user_update() in user.php at line 1856.
> So, by the time that (any) send_email_change_email filter could be
called, the warning email has already been sent.
To clarify a bit, `send_confirmation_on_profile_email()` sends the
[source:tags/5.2.1/src/wp-includes/user.php?marks=2813#L2783 Email Change
Request] email.
The `send_email_change_email` filter controls the [source:tags/5.2.1/src
/wp-includes/user.php?marks=2067#L2028 Email Changed] email sent later,
after the request is confirmed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43029#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list