转:修改 WordPress 发送邮件的默认邮箱和发件人

  1. //change WordPress default mail_from information
  2.  
  3. function new_from_name($email){
  4.     $wp_from_name = get_option('blogname');
  5.     return $wp_from_name;
  6. }
  7.  
  8. function new_from_email($email) {
  9.     $wp_from_email = get_option('admin_email');
  10.     return $wp_from_email;
  11. }
  12.  
  13. add_filter('wp_mail_from_name', 'new_from_name');
  14. add_filter('wp_mail_from', 'new_from_email');

原文:http://www.wpdaxue.com/change-wordpress-mail-from-info.html

其他案例

vestacp自动跳转HTTPS

开启blogger默认的标签是关闭状态

blogger条件判断

优化blogger在国内访问几个要点