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+

Warning

This plugin uses the “wp_insert_comment” hook, therefore, everytime a comment is created, a notification is likely to be sent. If you are importing comments into your blog, it’s a good idea to disable this plugin.

Customizing the email template

To customize the email template, copy the “templates” folder to your theme folder. The plugin will look for templates on the “/wp-content/themes/[THEME]/templates/cren/” folder; if a custom template is not found, then it will fallback to the default template.

Templates folder on GitHub: https://github.com/guhemama/worpdress-comment-reply-email-notification/tree/master/templates

Changing the subscription checkbox label

The checkbox label can be changed with the cren_comment_checkbox_label filter. This way you can update the text to your taste and keep the plugin updated.

Changing the GDPR checkbox label

The GDPR checkbox label can be changed with the cren_gdpr_checkbox_label filter. This way you can update the text to your taste and keep the plugin updated.

Buy me a coffee/beer

Do you like this plugin? Support it by buying me some human-fuel – coffee on weekdays, and beer on weekends. 😉

https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HG8SRFWT4XY58

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

Nice!

A simple and clean plugin which works nicely.

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

Read all 9 reviews

Contributors & Developers

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

Changelog

1.6.1

  • Fixed default settings not being set

1.6.0

  • Added Turkish translation (thanks Bünyamin Yildirim!)
  • Added filters to the checkbox label
  • Added GDPR box
  • Added admin settings page
  • Added HTML entities decode to email title

1.5.0

  • Added Italian translation (thanks Giacomo Bellisi!)
  • Added Hebrew translation (thanks Lea Cohen!)

1.4.4

  • Fixed undefined variable
  • Updated French translation

1.4.3

  • Updated Spanish translation
  • Added German translation (thanks to Nathanael Dalliard!)

1.4.2

  • Added french translation

1.4.1

  • Fixed unsubscribe page template

1.4.0

  • Added the ability to use a custom email template
  • Added plugin rendering options
  • Fixed unsubscribe link

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