[wp-trac] [WordPress Trac] #42133: Add filter to emails sent by wp_new_blog_notification()

WordPress Trac noreply at wordpress.org
Fri Sep 25 22:12:42 UTC 2020


#42133: Add filter to emails sent by wp_new_blog_notification()
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:
                                                 |  johnbillion
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.6
Component:  Upgrade/Install                      |     Version:  2.1
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch dev-        |     Focuses:  multisite
  feedback                                       |
-------------------------------------------------+-------------------------
Description changed by johnbillion:

Old description:

> `wp_new_blog_notification()` contains a call to `wp_mail()` which sends
> an email when WordPress is first installed, and when a site is added to a
> Multisite network.
> ([https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
> admin/includes/upgrade.php?marks=376-399#L361 Ref]).
>
> The contents of the email cannot be filtered. The recipient, subject,
> message, and headers should be passed through a filter in the same format
> as the `password_change_email ` filter.
> ([https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
> includes/user.php?marks=1842-1864#L1818 Ref]).

New description:

 `wp_new_blog_notification()` contains a call to `wp_mail()` which sends an
 email when WordPress is first installed ~~and when a site is added to a
 Multisite network~~.
 ([https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
 admin/includes/upgrade.php?marks=376-399#L361 Ref]).

 The contents of the email cannot be filtered. The recipient, subject,
 message, and headers should be passed through a filter in the same format
 as the `password_change_email ` filter.
 ([https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
 includes/user.php?marks=1842-1864#L1818 Ref]).

--

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


More information about the wp-trac mailing list