#42132 closed enhancement (fixed)
Add filter to emails sent by wp-admin/user-new.php
Reported by: | johnbillion | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 5.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Users | Keywords: | good-first-bug has-patch needs-refresh dev-feedback has-dev-note |
Focuses: | multisite | Cc: |
Description
wp-admin/user-new.php
contains a call to wp_mail()
which sends an email when an existing user is invited to a site from the Users -> Add New -> Add Existing User
screen within a site on Multisite. (Ref).
The contents of the email cannot be filtered. The subject, message, and headers should be passed through a filter in the same format as the password_change_email
filter. (Ref).
Attachments (4)
Change History (25)
This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.
7 years ago
#7
follow-up:
↓ 8
@
6 years ago
@benoitchantre Proposed patches have a filter for the array - $new_user_mail which includes To (recipient email), Subject and Message. So it will also allow filtering the subject.
#8
in reply to:
↑ 7
@
6 years ago
Replying to anand.au14:
@benoitchantre Proposed patches have a filter for the array - $new_user_mail which includes To (recipient email), Subject and Message. So it will also allow filtering the subject.
Great, thank you for mentioning that @anand.au14. I didn't saw it :-)
#13
@
5 years ago
- Milestone changed from 5.2 to 5.3
This ticket has not received any attention during the 5.2 cycle. With beta
1 tomorrow, going to punt this to 5.3.
This ticket was mentioned in Slack in #core by sergey. View the logs.
5 years ago
#15
@
5 years ago
- Keywords needs-refresh added
- Milestone changed from 5.3 to Future Release
The patch is no longer applying cleanly and still needs review. The 5.3 beta deadline is just under 4 days away, so I am going to punt this.
If the patch is refreshed and someone has time to review before that, it can be moved back.
This ticket was mentioned in Slack in #core by anandau14. View the logs.
5 years ago
#20
@
4 years ago
- Keywords needs-dev-note added
Let's note this new filter in the miscellaneous dev note.
Added patch for #42132.
It now applies filter to the contents of the email.