简体   繁体   English

无法更改WordPress管理员邮件

[英]Unable to change WordPress admin mail

I want to change my WordPress admin email. 我想更改我的WordPress管理员电子邮件。 If I am doing from the WordPress settings, it is showing request pending, you will receive a confirmation email. 如果我使用WordPress设置进行操作,则显示请求待处理,您将收到一封确认电子邮件。 But I am not getting any mail from WordPress. 但是我没有收到WordPress的任何邮件。 I also try to change it from the database but the changed email is not reflecting in WordPress. 我也尝试从数据库中更改它,但是更改后的电子邮件未反映在WordPress中。

  1. Add the following lines on top of your active themes functions.php save the file 在活动主题函数的顶部添加以下行。php保存文件
  2. Reload your admin once then comment the added code 重新加载管理员一次,然后注释添加的代码

     update_option( 'admin_email', 'your_new_email@gmail.com' ); update_option( 'new_admin_email', 'your_new_email@gmail.com' ); 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM