Change WordPress default FROM email address


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. add_filter('wp_mail_from', 'new_mail_from');
  2. add_filter('wp_mail_from_name', 'new_mail_from_name');
  3.  
  4. function new_mail_from($old) {
  5. }
  6. function new_mail_from_name($old) {
  7. return 'Your Blog Name';
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.