[wp-trac] [WordPress Trac] #26317: Added Filter to be possible to disable/change the 'New Site Created' email sent to Administration email address
    WordPress Trac 
    noreply at wordpress.org
       
    Thu Dec 19 09:54:45 UTC 2013
    
    
  
#26317: Added Filter to be possible to disable/change the 'New Site Created' email
sent to Administration email address
-------------------------+------------------
 Reporter:  vaurdan      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.9
Component:  Multisite    |     Version:  3.0
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------
Comment (by vaurdan):
 Replying to [comment:2 jeremyfelt]:
 > Thanks for the ticket and the patch, vaurdan. It is interesting that we
 only fire the quick email with `wp_mail()` to the admin right before an
 abstracted event for `wpmu_welcome_notification()`.
 Yup, that doesn't make much sense, this was probabily old and forgotten
 code.
 > If we pull this out into a new function, we should identify where else
 it could be used to notify an admin that a new site has been created. It
 should also likely not have the `wpmu_` prefix, as that was ported over in
 the WPMU transition. We'd be ok to do something more like
 `wp_new_site_admin_notification()` I think.
 >
 > We can probably move the `get_site_url()` check into the new function
 and pass the `$id` along as we do in `wpmu_welcome_notification()`.
 >
 > I think it makes sense to see how we can improve this going forward. The
 new site notification emails are pretty light at the moment. It looks like
 it has been this way since MU was ported over via [12603].
 >
 Yes, you're right. I used the prefix `wpmu_`, just because all the
 functions there had `wpmu_` as well, but makes much more sense using
 ´wp_´, since there is no wpmu anymore...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26317#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list