wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_follow_email_notification
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

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);

Was this article helpful to you? Yes No