Created
January 15, 2014 15:50
-
-
Save dannyockilson/8438642 to your computer and use it in GitHub Desktop.
Drop-in for custom wp-mail settings
This file contains hidden or 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
/* Set Default Mail From Name */ | |
function custom_wp_mail_from_name( $original_email_from ){ | |
return 'Danny Wilson'; | |
} | |
add_filter( 'wp_mail_from_name', 'custom_wp_mail_from_name' ); | |
/* Set Default Mail From email */ | |
function custom_wp_mail_from( $original_email_address ){ | |
return '[email protected]'; | |
} | |
add_filter( 'wp_mail_from', 'custom_wp_mail_from' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment