[wp-trac] [WordPress Trac] #761: Add hook to conditionally disable comment notifications

WordPress Trac noreply at wordpress.org
Thu Sep 3 23:24:15 UTC 2015


#761: Add hook to conditionally disable comment notifications
-------------------------------------------------+-------------------------
 Reporter:  coffee2code                          |       Owner:  matt
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
Component:  Comments                             |  Release
 Severity:  normal                               |     Version:  1.2.2
 Keywords:  has-patch needs-testing dev-         |  Resolution:
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):

 * keywords:  has-patch needs-testing needs-refresh dev-feedback => has-
     patch needs-testing dev-feedback


Comment:

 [attachment:761.4.diff]:
 * Refresh last patch against trunk
 * Add some hook docs
 * Introduces similar `wp_notify_moderator` filter (including a later check
 inside wp_notify_moderator() if you want to override a disabled setting)
 * In all cases, passes the current setting and comment id for context

 Appreciate feedback! and unit tests!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/761#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list