wpDiscuz 7 API Documentation

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


This filter can be used for changing the email of the Comment author.


since 7.3.0 version


$email – the email of the Comment author. In the case of registered users, it matches with the current user email.


add_filter("wpdiscuz_commenter_email", function ($email) {
    return uniqid() . "@example.com";

Was this article helpful to you? Yes 1 No