[wp-trac] [WordPress Trac] #33717: Send Notification Email When a Comment is Approved From Moderation
WordPress Trac
noreply at wordpress.org
Tue Nov 24 16:57:17 UTC 2020
#33717: Send Notification Email When a Comment is Approved From Moderation
-------------------------------------------------+-------------------------
Reporter: jeffr0 | Owner: imath
Type: feature request | Status: assigned
Priority: normal | Milestone: 5.7
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses:
tests needs-dev-note |
-------------------------------------------------+-------------------------
Changes (by johnbillion):
* keywords: has-patch needs-testing needs-unit-tests => has-patch needs-
testing needs-unit-tests needs-dev-note
Comment:
I like the fact that this whole piece of functionality, including the
checkbox and the email itself, is linked to one action.
@imath Is there any protection here against sending multiple emails if a
comment is approved, unapproved, and approved a second time? I think in
that case the email should only ever be sent once.
----
This will need a dedicated dev note. **tl;dr** a plugin that provides this
functionality itself and wishes to disable core's functionality (to avoid
duplicate emails) needs to call `remove_action(
'comment_unapproved_to_approved', 'wp_new_comment_notify_comment_author'
)`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33717#comment:62>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list