最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Change email address change notice from WordPress

programmeradmin6浏览0评论

I need to change the default text of the email which is sent when i change a subscribers email. The text:

Hi XYZ,

This notice confirms that your email address on CHL Club Hub was changed to [email protected].

If you did not change your email, please contact the Site Administrator at
[email protected]

This email has been sent to [email protected]

Regards,
All at PageName

I also would like to change the password change mail. Is there a documentation about this?

I need to change the default text of the email which is sent when i change a subscribers email. The text:

Hi XYZ,

This notice confirms that your email address on CHL Club Hub was changed to [email protected].

If you did not change your email, please contact the Site Administrator at
[email protected]

This email has been sent to [email protected]

Regards,
All at PageName
https://www.example

I also would like to change the password change mail. Is there a documentation about this?

Share Improve this question asked Jul 15, 2020 at 17:27 public9nfpublic9nf 3961 gold badge9 silver badges20 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

To filter the content of the email sent when a user's email is changed you want the email_change_email filter. Docs at https://developer.wordpress/reference/hooks/email_change_email/

Password change email is filtered by password_change_email, docs at https://developer.wordpress/reference/hooks/password_change_email/

You'll be able to search to find examples of how to use these. You'll need to add code to your functions.php or to a plugin to use them.

I found these by going to the Wordpress Code Reference here: https://developer.wordpress/reference/ and searching for 'email' and selecting only Hooks.

发布评论

评论列表(0)

  1. 暂无评论