Ather Mohammad
asked 9 years ago

Hi,

Whenever a notification email gets sent this is the header:

From: WordPress [email protected]
To:…etc

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

Thanks,

Ather

1 Answers
DominicStaff
answered 9 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