[wp-trac] [WordPress Trac] #42135: Add filter to disable email sent by wp-admin/network/site-new.php
WordPress Trac
noreply at wordpress.org
Sat Oct 7 14:33:34 UTC 2017
#42135: Add filter to disable email sent by wp-admin/network/site-new.php
--------------------------------+----------------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Networks and Sites | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: multisite |
--------------------------------+----------------------------------------
Related: #42134
`wp-admin/network/site-new.php` contains a call to `wp_mail()` which sends
an email when a new site is created from Network Admin -> Sites -> Add New
on Multisite. ([https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
admin/network/site-new.php?marks=137-159#L136 Ref]).
It's not possible to disable the email via a filter. One should be
implemented similarly to the `send_password_change_email ` filter.
([https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
includes/user.php?marks=1772-1784#L1766 Ref]).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42135>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list