Skip to content

Instantly share code, notes, and snippets.

@BeyondTheLoop
Last active April 24, 2023 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeyondTheLoop/b665a6395a543894e045712ce86f7241 to your computer and use it in GitHub Desktop.
Save BeyondTheLoop/b665a6395a543894e045712ce86f7241 to your computer and use it in GitHub Desktop.
Remove wordpress from WordPress sent email
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