Change Default From Address

Add this to functions.php to change the default from addresses when WordPress sends out its emails. A

Code Snippet:

<?php
add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
 return 'no-reply@example.com';
}

function new_mail_from_name($old) {
 return 'Dave Thomas';
}
?>

Posted in Admin area, Social