wpDiscuz 7 API Documentation

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

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

Was this article helpful to you? Yes No