wpDiscuz 7 API Documentation

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

wpdiscuz_privacy_personal_data_export

This filter can be used for changing some items from the exporting data.

Changelog

Since 7.0.0 version

Parameters

1. $data (type: array) - currently exported data
2. $commentId (type: int) - the comment ID that is being exported at the current time

Usage

add_filter("wpdiscuz_privacy_personal_data_export", function ($data, $commentId) {
    $data["customKey"] = "customValue";
    return $data;
}, 10, 2);