Created
April 19, 2014 09:35
-
-
Save ovizii/11079282 to your computer and use it in GitHub Desktop.
Change email/user for WP 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
add_filter( 'wp_mail_from', 'my_mail_from' ); | |
function my_mail_from( $email ) | |
{ | |
return "change-this-to-your-email-address"; | |
} | |
add_filter( 'wp_mail_from_name', 'my_mail_from_name' ); | |
function my_mail_from_name( $name ) | |
{ | |
return "My Name"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment