Ather Mohammad
asked 5 years ago

Hi,

Whenever a notification email gets sent this is the header:

From: WordPress example@myemail.com
To:…etc

How can I change the WordPress name from the "From:" line to my company’s name.

Thanks,

Ather

1 Answers
DominicStaff
answered 5 years ago

Hi,
To resolve this issue, you can add the following code to the functions.php file:

add_filter('wp_mail_from_name', 'new_mail_from_name');
function new_mail_from_name($old) {
return 'name';
}

Hope this helps !

Powered by DW Question & Answer Pro