Created
August 22, 2023 07:27
-
-
Save danielmcclure/a44b32d021a65402598343fd6ee5c1bd to your computer and use it in GitHub Desktop.
Change Default WordPress Sender Email
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 | |
// Edit the address and name below | |
add_filter( 'wp_mail_from', function ( $original_email_address ) { | |
return '[email protected]'; | |
} ); | |
// Change the From name. | |
add_filter( 'wp_mail_from_name', function ( $original_email_from ) { | |
return 'Your Name'; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment