Skip to content

Instantly share code, notes, and snippets.

@spigists
Created June 10, 2013 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spigists/5752624 to your computer and use it in GitHub Desktop.
Save spigists/5752624 to your computer and use it in GitHub Desktop.
Change the default from and from name on WordPress emails
/**
* Change the default from and from name on WordPress emails
*/
add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');
function new_mail_fom($old) {
return 'noreply@go-spi.com';
}
function new_mail_from_name($old) {
return 'Schmitt ProfiTools, Inc.';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment