wpDiscuz 7 API Documentation

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

wpdiscuz_notify_followers

This hook can be used for doing some actions after sending the email notification to followers.

Changelog

since 7.0.0 version

Parameters

1. $comment (type: WP_Comment object) – object of the comment
2. $followerData (type: array) – the data of the follow action

Usage

add_action("wpdiscuz_notify_followers", function ($comment, $followerData) {
    update_comment_meta($comment->comment_ID, "followers_notified", 1);
}, 10, 2);

Was this article helpful to you? Yes No