Is there a hook that would allow me to email multiple email addresses for the default admin email notifications?

I was hoping I could build an array:

$adminEmails = array('me1@example.com', 'me2@example.com');

Then have all admin emails (like new user notifications) sent to $adminEmails

Possible?

3 s
3

Try this:

update_option( 'admin_email', 'me1@example.com, me2@example.com' );

Note that the value is a string; open and close quotes only!

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *