Created
May 12, 2010 04:23
-
-
Save mjangda/398203 to your computer and use it in GitHub Desktop.
How to change the "From" name and email address for outgoing 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
<?php | |
add_filter( 'wp_mail_from', 'mycustom_wp_mail_from' ); | |
function mycustom_wp_mail_from( $from_email ) { | |
return 'abc@xyz.com'; | |
} | |
add_filter( 'wp_mail_from_name', 'mycustom_wp_mail_from_name' ); | |
function mycustom_wp_mail_from_name( $from_name ) { | |
return 'John Doe'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment