admin管理员组文章数量:1333636
By default, when customer changed their password using "Lost your password?" link, an email notification saying "Password changed for user: ***
" will be sent to Admin's email address. Is there way to change the email address recipient without changing the website's admin email address?
By default, when customer changed their password using "Lost your password?" link, an email notification saying "Password changed for user: ***
" will be sent to Admin's email address. Is there way to change the email address recipient without changing the website's admin email address?
1 Answer
Reset to default 0Yes, the email properties are filtered through wp_password_change_notification_email before it is sent (code here), which you can hook to modify them e.g.
function set_password_change_notification_email_to( $email, $user, $blogname ) {
$email[ 'to' ] = '[email protected]';
return $email;
}
add_filter( 'wp_password_change_notification_email',
'set_password_change_notification_email_to', 10, 3 );
本文标签: woocommerce offtopicChange password notification email
版权声明:本文标题:woocommerce offtopic - Change password notification email 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742357902a2459784.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论