The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
How to modify the W...
 
Share:
Notifications
Clear all

[Solved] How to modify the WordPress “from email address”

1 Posts
1 Users
2 Reactions
4,052 Views
Asti
 Asti
(@asti)
Illustrious Member Support
Joined: 8 years ago
Posts: 8208
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#7276]

Are you looking for a way to change the "from email address" in your WordPress theme? 

All you have to do is add this code to your WordPress active theme’s functions.php file:

add_filter('wp_mail_from', function ($email){
   return 'no-reply@blogname.com';
});

Don't forget to change the red-marked code (set the right email) before using it. 

This is a small instruction on How to Easily Add Custom Code in WordPress:  https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

More info for the wp_mail_from hook here: https://developer.wordpress.org/reference/hooks/wp_mail_from/


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.


   
Jacob and Zackar reacted
Share: