WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #10726, comment 26


Ignore:
Timestamp:
03/17/2016 12:44:48 AM (6 years ago)
Author:
tripflex
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10726, comment 26

    initial v1  
    33Only thing missing would be check for admin email if `to` is an array, but I have yet to see a case of that where the plugin/theme didn't have its own method of adding additional emails.
    44 
     5'''''I'm going to leave this here but I just realized that this only checks the TO and has no way to tell if it's actually an admin email ... so say the `admin_email` is the same as your user account, you request password reset ... it will send to those additional emails as well --- sorry about that'''''
     6
    57{{{
    68add_filter( 'wp_mail', 'my_custom_to_admin_emails' );