wpDiscuz 7 API Documentation

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

wpdiscuz_email_subject

The filter can be used if it’s need to change the subject while sending the subscription email.

Changelog

Since 7.6.1 version

Parameters

1. $subject – the subject of the subscription email
2. $comment – the newly added comment
3. $emailData – the data of the subscription email

Usage

add_filter('wpdiscuz_email_subject', function($subject, $comment, $emailData){
        return 'My Custom Subject';
});

Was this article helpful to you? Yes 2 No