Created
June 18, 2020 21:10
-
-
Save taricco/fcd95e4a8e41110ae2f2542afd6fc077 to your computer and use it in GitHub Desktop.
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
| /** | |
| * Snippet Name: Change default FROM email address | |
| * Snippet URL: http://www.wpcustoms.net/snippets/change-default-from-email-address/ | |
| */ | |
| function new_mail_from($old) { | |
| return '[email protected]'; | |
| } | |
| function new_mail_from_name($old) { | |
| return 'John Doe'; | |
| } | |
| add_filter('wp_mail_from', 'new_mail_from'); | |
| add_filter('wp_mail_from_name', 'new_mail_from_name'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment