wpDiscuz 7 API Documentation

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

wpdiscuz_mentioned_user_mail_body

This filter can be used for changing the body of the email that will be sent to the mentioned user. If the body is empty the email will not be sent.

Changelog

Since 7.1.0 version

Parameters

1. $body(type: string) – the body of the email
2. $user (type: array) – the data of the mentioned user
3. $comment_data (type: WP_Comment object) – the object of the current comment

Usage

add_filter("wpdiscuz_mentioned_user_mail_body", function ($body, $user, $comment_data) {
    return "";
}, 10, 3);

Was this article helpful to you? Yes No