Skip to content

How To Change Default From Name And Email In WordPress

WordPress sends mails to admin & users at many occasions to notify them about various stuff. It’s better to change default from name and email in WordPress with your custom one. By default, there’s no option to do that from the back-end of your blog, but we have a snippet which will do the job.

Just drop the following to your current theme’s functions.php file:

add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
 return '[email protected]';
function new_mail_from_name($old) {
 return 'Website Name';

Leave a Reply

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