wpDiscuz 7 API Documentation

⌘K
  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentat...
  4. Filters
  5. wpdiscuz_commenter_email

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";
});