Created
June 10, 2013 21:41
-
-
Save spigists/5752624 to your computer and use it in GitHub Desktop.
Change the default from and from name on WordPress emails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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