The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
How to modify the W...
 
Share:
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

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

1 Posts
1 Users
2 Reactions
3,047 Views
Asti
 Asti
(@asti)
Illustrious Member Support
Joined: 8 years ago
Posts: 8075
Topic starter  

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: