WordPress Plugin to Send Notifications to Previous Commenters

This is a simple WordPress plugin to send an e-mail to all those who previously commented on a post. When an individual posts a new comment, everyone else who previously posted a comment will receive an e-mail containing an e-mail notification that a new comment was added to a particular post. It includes some minimal logic to send the notification to everyone except the individual posting the latest comment. While not included here, I would expect this can be further expanded to include features to opt-out of receiving notifications, to turn the notifications off for particular posts, or to modify the notification message content. Add the below code to a .php file and upload it to your plugin directory. Once uploaded, activate the plugin from your dashboard and the notifications will be sent when any new comments are posted.

Leave a Comment