钩子文档

wp_privacy_personal_data_export_page

💡 云策文档标注

概述

wp_privacy_personal_data_export_page 是一个 WordPress 过滤器钩子,用于过滤个人数据导出器的一页数据,主要用于构建导出报告。它允许导出响应被 Ajax 以外的目的地使用。

关键要点

  • 这是一个过滤器钩子,用于处理个人数据导出过程中的单页数据。
  • 钩子参数包括 $response(个人数据数组)、$exporter_index(导出器索引)、$email_address(关联邮箱)、$page(页码)、$request_id(隐私请求 ID)、$send_as_email(是否邮件发送)、$exporter_key(导出器键名)。
  • 在 WordPress 4.9.6 版本中引入。

代码示例

$response = apply_filters( 'wp_privacy_personal_data_export_page', $response, $exporter_index, $email_address, $page, $request_id, $send_as_email, $exporter_key );

注意事项

  • 此钩子与 wp_ajax_wp_privacy_export_personal_data() 函数相关,用于处理通过 AJAX 导出用户个人数据的操作。
  • 开发者应确保在过滤时正确处理所有参数,以保持数据完整性和隐私合规性。

📄 原文内容

Filters a page of personal data exporter data. Used to build the export report.

Description

Allows the export response to be consumed by destinations in addition to Ajax.

Parameters

$responsearray
The personal data for the given exporter and page number.
$exporter_indexint
The index of the exporter that provided this data.
$email_addressstring
The email address associated with this personal data.
$pageint
The page number for this response.
$request_idint
The privacy request post ID associated with this request.
$send_as_emailbool
Whether the final results of the export should be emailed to the user.
$exporter_keystring
The key (slug) of the exporter that provided this data.

Source

$response = apply_filters( 'wp_privacy_personal_data_export_page', $response, $exporter_index, $email_address, $page, $request_id, $send_as_email, $exporter_key );

Changelog

Version Description
4.9.6 Introduced.