wpDiscuz 7 API Documentation

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


This hook can be used for doing some action after sending the email notification to the post subscriber.


since 7.0.0 version


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


add_action("wpdiscuz_notify_post_subscribers", function ($postId, $commentId, $subscriberUserId, $subscriberEmail) {
    update_post_meta($postId, "post_subscribers_notified_for_" . $commentId, 1);
}, 10, 4);

Was this article helpful to you? Yes No