Last active
April 24, 2023 12:29
-
-
Save BeyondTheLoop/b665a6395a543894e045712ce86f7241 to your computer and use it in GitHub Desktop.
Remove wordpress from WordPress sent 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
add_filter( 'wp_mail_from', function ( $original_email_address ) { | |
return str_replace( 'wordpress@', 'noreply@', $original_email_address ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment