Created
June 27, 2017 14:07
-
-
Save gabrielmerovingi/f910d31b45d97149473e769b51d0de4b to your computer and use it in GitHub Desktop.
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
function enforce_dfds_email_from($old) { | |
return 'yourname@yourdomain.com'; | |
} | |
add_filter( 'wp_mail_from', 'enforce_dfds_email_from' ); | |
function enforce_dfds_email_from_name($old) { | |
return 'Your Name'; | |
} | |
add_filter( 'wp_mail_from_name', 'enforce_dfds_email_from_name' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment