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

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

1 Posts
1 Users
2 Likes
1,416 Views
Asti
 Asti
(@asti)
Illustrious Member Support
Joined: 6 years ago
Posts: 7096
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: