Created
November 21, 2012 15:27
-
-
Save mustardBees/4125424 to your computer and use it in GitHub Desktop.
Change WordPress email sender
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 wp_mail's from name | |
*/ | |
function iweb_change_from_name( $name = '' ) { | |
return get_bloginfo( 'name' ); | |
} | |
add_filter( 'wp_mail_from_name', 'iweb_change_from_name' ); | |
/** | |
* Change wp_mail's from email | |
*/ | |
function iweb_change_from_email( $email = '' ) { | |
return get_bloginfo( 'admin_email' ); | |
} | |
add_filter( 'wp_mail_from', 'iweb_change_from_email' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment