This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 8th, 2013  |  syntax: None  |  size: 0.29 KB  |  views: 47  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /*change email from wordpress at domain dot com */
  2. add_filter('wp_mail_from', 'new_mail_from');
  3. add_filter('wp_mail_from_name', 'new_mail_from_name');
  4.  
  5. function new_mail_from($old) {
  6.  return 'noreply@yourdomain.com';
  7. }
  8. function new_mail_from_name($old) {
  9.  return 'Whatever Name you want';
  10. }
clone this paste RAW Paste Data