[wp-trac] [WordPress Trac] #42135: Add filter to disable email sent by wp-admin/network/site-new.php

WordPress Trac noreply at wordpress.org
Mon Jan 8 16:15:15 UTC 2018


#42135: Add filter to disable email sent by wp-admin/network/site-new.php
--------------------------------------+--------------------------
 Reporter:  johnbillion               |       Owner:  johnbillion
     Type:  enhancement               |      Status:  reviewing
 Priority:  normal                    |   Milestone:  5.0
Component:  Networks and Sites        |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  multisite
--------------------------------------+--------------------------

Comment (by thomaswm):

 Replying to [ticket:42135 johnbillion]:
 > 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]).

 Instead of adding a filter for disabling these emails, we could put the
 code that is responsible for sending the email into a new function and
 call that function using a hook. This has been done in #33587 for comment
 notifications and also for signup notification emails in multisite.

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


More information about the wp-trac mailing list