wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Actions
  5. wpdiscuz_notify_comment_subscribers
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors


This hook can be used for making some actions after sending the email notification to the subscriber who has subscribed to the current comment.


since 7.0.0 version


1. $parentCommentId (type: int) – parent comment ID
2. $commentId (type: int) – comment ID
3. $subscriberUserId (type: int) – the ID of the subscribed user
4. $subscriberEmail (type: string) – the email address of the subscriber


add_action("wpdiscuz_notify_comment_subscribers", function ($parentCommentId, $newCommentId, $subscriberUserId, $subscriberEmail) {
    update_comment_meta($parentCommentId, "comment_subscribers_notified_for_" . $newCommentId, 1);
}, 10, 4);

Was this article helpful to you? Yes No 1