wpDiscuz 7 API Documentation

⌘K
  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentat...
  4. Filters
  5. wpdiscuz_follow_email_notification

wpdiscuz_follow_email_notification

This filter can be used to either send emails to followers or not.

Changelog

since 7.0.0 version

Parameters

1. $sendMail (type: bool) - either send the email to followers or not
2. $followData (type: array) - follow data
3. $comment (type: WP_Comment object) - the object of the comment

Usage

add_filter("wpdiscuz_follow_email_notification", function ($sendMail, $followData, $comment) {
    return false;
}, 10, 3);