Comment Reply Email Notification

Description

This plugin notifies a comment author via email when someone replies to his comment.

Requirements

  • PHP 5.6+
  • WordPress 4.4+

Installation

How to install the plugin:

  1. Upload the ZIP file to your WordPress installation directory
  2. Extract the ZIP file contents to the /wp-content/plugins directory.
  3. Activate the plugin.
  4. For better results, setup a plugin to send emails using SMTP.

FAQ

Installation Instructions

How to install the plugin:

  1. Upload the ZIP file to your WordPress installation directory
  2. Extract the ZIP file contents to the /wp-content/plugins directory.
  3. Activate the plugin.
  4. For better results, setup a plugin to send emails using SMTP.

Reviews

Checkbox only shows if logged out

The plugin is great, simple and lightweight as advertised, but needs a bit of work.

My main complaint is that the subscribe checkbox only shows if the person commenting is not logged in. This is because it is hooked in using

comment_form_default_fields

which is for the ‘logged out’ form.

It seems like an arbitrary distinction to make, only showing the checkbox to logged out users, especially on blogs where users MUST be logged in to comment in the first place. To show checkbox for logged in users:

add_action( 'comment_form_logged_in_after', 'logged_in_fields' );

function logged_in_fields() {
    $commenter = wp_get_current_commenter();
    echo implode('', cren_comment_fields(array()));
}

This puts the checkbox above the comment textarea. To move it below, I used flex-box order css. Maybe there is a better hook to use to move it below?

Next big thing. The email has to have an ‘unsubscribe’ link which stops the email notification. I know it add to the plugin but it is basically a legal requirement and, on really busy comment sections, the user could become very annoyed without the ability to unsubscribe.

The next thing, which perhaps should be a setting, is that the plugin sends an email to the comment parent author even if they are replying to their own comment. Why would people reply to their own comments? Well, in blogs where comment sections are limited in depth (to say depth of 3 replies), the way to ‘reply’ to someone in the bottom depth is to reply to the parent comment which can often be oneself. A simple fix for this to go within “cren_comment_notification”:

       //if replying to self dont send email

        if($email == $comment->comment_author_email){
            return false;
        }

Lastly, but just an idea and probably best as a setting, you might want to check before sending mail:
IF the discussion setting “Email me whenever Anyone posts a comment” is ON
THEN don’t send the reply notification to the post author, because they will be getting an email about a new comment anyway.

These things might improve the plugin while still keeping it lightweight. Cheers

Good!

Hey! Thanks for the plugin!

This is so good, but if you want the translation (Thai language)
pls contact me, I have this.

Read all 7 reviews

Contributors & Developers

“Comment Reply Email Notification” is open source software. The following people have contributed to this plugin.

Changelog

1.3.3

  • Updated translations and translation domain

1.3.2

  • Fixed email content type filter interfering with other emails
  • Removed asterisk from comment form subscription checkbox

1.3.1

  • Fixed missing variable on checkbox template
  • Fixed notification being sent to the comment author when he replies his own comment

1.3.0

  • Fixed opt-in checkbox for logged in users
  • Added Russian and Ukrainian translations (thanks to Oleh Astappiev!)
  • Added unsubscribe link to email

1.2.0

  • Added opt-in checkbox to comment form

1.1.1

  • Fixed typo in hook

1.1.0

  • Added ES and PT-BR translations
  • Added build script

1.0.0

  • First release