wpDiscuz 7 API Documentation

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

wpdiscuz_email_content

This filter can be used to change the content (before the replaces) of the email sent to the subscriber

Changelog

since 7.0.0 version

Parameters

1. $message (type: string) - the content (before the replaces) of the email sent to the subscriber
2. $comment (type: WP_Comment object) - the object of the comment
3. $emailData (type: array) - subscription data

Usage

add_filter("wpdiscuz_email_content", function ($message, $comment, $emailData) {
    $message .= "Custom Message To Append After Mail Content";
    return $message;
}, 10, 3);