admin管理员组文章数量:1321425
I was wondering if I could make it so that if I approve a user account via "Users" UI that an automatic email is sent to the user saying something like "Hey, your account on www.website has been approved, thanks for your patience!"
Is this possible in WordPress core, or is this something that has to be added manually?
Thanks in advance.
I was wondering if I could make it so that if I approve a user account via "Users" UI that an automatic email is sent to the user saying something like "Hey, your account on www.website has been approved, thanks for your patience!"
Is this possible in WordPress core, or is this something that has to be added manually?
Thanks in advance.
Share Improve this question edited Feb 14, 2019 at 12:30 butlerblog 5,1013 gold badges26 silver badges43 bronze badges asked Feb 14, 2019 at 12:00 Arne De BelserArne De Belser 358 bronze badges 3 |1 Answer
Reset to default 0What you are trying to do - approve a user in the admin and send an email - must be done using action and filter hooks, either by a plugin you're using or your own code in your child theme or a plugin.
To approve a user, take a look at the user_register
, edit_user_profile
, edit_user_profile_update
and load-user-edit.php
hooks to get started. In your own approval code, you would then structure your email and send it with the wp_mail()
function.
Try searching the net for detailed solutions, you should be able to find blog posts with ready code.
本文标签: How do I make WordPress send an email to the user when his account gets approved (manual by me)
版权声明:本文标题:How do I make WordPress send an email to the user when his account gets approved (manual by me) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742102666a2420872.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wpforms-pending
to thewp_user_meta
table, so this is probably the field I'm looking for. This issue is not solved as it not a WordPress core issue. Thanks for your help. – Arne De Belser Commented Feb 14, 2019 at 12:42