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

WordPress Trac noreply at wordpress.org
Sat Sep 19 17:31:59 UTC 2015


#761: Add hook to conditionally disable comment notifications
------------------------------------+-----------------------------
 Reporter:  coffee2code             |       Owner:  SergeyBiryukov
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  4.4
Component:  Comments                |     Version:  1.2.2
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------

Comment (by thomaswm):

 Replying to [ticket:761 coffee2code]:
 > AFAIK, there isn't a  clean way for a plugin to insert itself into the
 notification process.

 There is a way now. In #33587, the calls to the notification functions
 were replaced by hooks. Since [34106], the functions
 `wp_notify_postauthor` and `wp_notify_moderator` are called using the
 `comment_post` hook.

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


More information about the wp-trac mailing list