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

wpdiscuz_commenter_email

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

Changelog

since 7.3.0 version

Parameters

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

Usage

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

Was this article helpful to you? Yes No