Changes between Initial Version and Version 1 of Ticket #10726, comment 26
- Timestamp:
- 03/17/2016 12:44:48 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10726, comment 26
initial v1 3 3 Only 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. 4 4 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 5 7 {{{ 6 8 add_filter( 'wp_mail', 'my_custom_to_admin_emails' );