Created
May 7, 2012 02:07
-
-
Save jpswelch/2625444 to your computer and use it in GitHub Desktop.
WordPress: change default email user from wordpress@ to another@ #wordpress
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
add_filter('wp_mail_from', 'new_mail_from'); | |
add_filter('wp_mail_from_name', 'new_mail_from_name'); | |
function new_mail_from($old) { | |
return 'info@domain.com'; | |
} | |
function new_mail_from_name($old) { | |
return 'Company Name'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've collected a tad-bit more: https://gist.github.com/Aahan/4752741