wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_privacy_personal_data_export
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

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

Was this article helpful to you? Yes No