wpDiscuz 7 API Documentation

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

wpdiscuz_mentioned_user_mail_subject

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

Changelog

Since 7.1.0 version

Parameters

1. $subject (type: string) – the subject 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_subject", function ($subject, $user, $comment_data) {
    return "";
}, 10, 3);

Was this article helpful to you? Yes No