
WordPress 定制
WordPress sends email notifications to administrators to notify them of new comments, new user registration, etc. Usually these notifications become annoying for a busy site and people seek ways to 把它们关掉. What if we told you that you can customize these notifications and even add your own custom notifications for different events for different users. In this article, we will show you how to add and customize notifications in WordPress.
WordPress将电子邮件通知发送给管理员,以通知他们新的评论,新的用户注册等信息。通常,这些通知对于繁忙的网站变得很烦人,人们寻求关闭它的方法 。 如果我们告诉您可以自定义这些通知,甚至为不同用户的不同事件添加自己的自定义通知,该怎么办。 在本文中,我们将向您展示如何在WordPress中添加和自定义通知。

First thing you need to do is install and activate the 更好的 WordPress 通知 plugin. Upon activation the plugin will add a new “通知” tab in your WordPress admin sidebar.
您需要做的第一件事是安装并激活更好的 WordPress 通知插件。 激活后,插件将在您的WordPress管理员侧栏中添加一个新的“通知”标签。
To add a notification, you need to visit 通知 » 添加新内容.
要添加通知,您需要访问通知 » 添加了新内容 。

You will need to provide a title for the notification and select the event when this notification will be sent from the 通知 drop down menu. There are a number of events that you can send notifications for such as new comments, lost password, new user registration, new user welcome email, comment reply notification, post pending review, post updated, post scheduled, and more.
您需要为通知提供标题,并在“ 通知”下拉菜单中发送该通知时选择事件。 您可以发送许多事件来发送通知,例如新评论,密码丢失,新用户注册,新用户欢迎电子邮件,评论回复通知,发布待审核,发布更新,预定发布等等。
在下一部分中,系统将要求您选择电子邮件格式,添加其他电子邮件字段(例如抄送、密件抄送),并选择哪个用户角色将收到通知电子邮件。
在下一部分中,系统将要求您选择电子邮件格式、添加其他电子邮件字段(例如抄送、密件抄送),然后选择将接收通知电子邮件的用户角色。

该插件支持自定义角色,因此如果您使用会员插件,那么这些用户角色也会出现在此处。您还可以选择将通知发送给触发操作的主用户,或使用相应的复选框为他们禁用通知。
该插件支持自定义角色,因此如果您使用会员插件,这些用户角色也会出现在此处。您还可以选择向触发操作的主要用户发送通知,或使用相应的复选框为他们禁用通知。
现在是实际的通知电子邮件部分。
现在是实际的通知电子邮件部分。

首先,您需要提供通知电子邮件的主题行。之后,您需要输入消息正文。确保您的消息具有描述性并包含链接,以便接收通知的用户知道他们下一步应该做什么。
首先,您需要提供通知电子邮件的主题行。之后,您需要输入消息正文。确保您的消息具有描述性并包含链接,以便接收通知的用户知道下一步该做什么。
The plugin accepts a number of shortcodes, so you can use those tags inside your notification message to display post permalinks, usernames, comment id, comment links, user names, etc. See the 完整的标签列表.
该插件接受许多短代码,因此您可以在通知消息中使用这些标签来显示帖子永久链接,用户名,评论ID,评论链接,用户名等。请参阅标签的完整列表 。
完成后,只需单击“向我发送测试电子邮件”按钮即可。
完成后,只需单击“向我发送测试电子邮件”按钮。

如果测试电子邮件中的一切看起来都不错,则单击“保存”按钮以启用此通知。
如果测试电子邮件中的所有内容看起来都不错,请单击“保存”按钮以启用此通知。
故障排除
故障排除
如果由于某种原因,您的用户没有收到电子邮件,那么您需要检查的第一件事是您是否为通知选择了正确的用户角色或用户名。
如果由于某种原因您的用户没有收到电子邮件,您需要检查的第一件事是您是否为通知选择了正确的用户角色或用户名。
After that check out our guide on how to 修复 WordPress 不发送电子邮件的问题 which will surely fix the issue.
之后,请查看有关如何解决 WordPress 不发送电子邮件问题的指南 ,这肯定会解决该问题。
We hope this article helped you learn how to add and customize notifications in WordPress. You may also want to take a look at our guide on how to 监控 WordPress 中的用户活动.
我们希望本文能帮助您学习如何在WordPress中添加和自定义通知。 您可能还需要看一下我们如何监控 WordPress 中的用户活动指南。
If you liked this article, then please subscribe to our YouTube 频道 for WordPress video tutorials. You can also find us on 推特 and 谷歌+.
如果您喜欢这篇文章,请订阅我们的YouTube 频道 WordPress视频教程。 您也可以在推特和谷歌+上找到我们。
翻译自: https://www.wpbeginner.com/plugins/how-to-add-better-custom-notifications-in-wordpress/
WordPress 定制