Created
August 24, 2015 16:25
-
-
Save JudeRosario/58f48d113657b90e989b to your computer and use it in GitHub Desktop.
Change WP From email
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 default WP email sender | |
add_filter('wp_mail_from', 'new_mail_from'); | |
function new_mail_from_name($old) { | |
return 'Site Administrator'; | |
} | |
add_filter('wp_mail_from_name', 'new_mail_from_name'); | |
function new_mail_from($old) { | |
return 'info@mydomain.com'; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just edit the Name and Email ID and then copy/paste the code into the functions.php file of your child theme or a site specific plugin if you use one.