Quantcast
Channel: Dare to Think
Viewing all articles
Browse latest Browse all 41

Change the default wordpress@ email address

$
0
0
wordpress

By default WordPress emails, such as comment notifications, are sent from

WordPress <*protected email*>

Not entirely sure why WordPress doesn’t have a built-in option to change this but if you want to change it simply add this to your functions.php file…

// Change default WordPress email address
add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
return '*protected email*';
}
function new_mail_from_name($old) {
return 'Your Name';
}

Obviously substituting ‘*protected email*’ and ‘Your Name’

The post Change the default wordpress@ email address appeared first on Dare to Think.


Viewing all articles
Browse latest Browse all 41

Trending Articles