wp_privacy_personal_data_erasers
云策文档标注
概述
本文档介绍了 WordPress 中的 wp_privacy_personal_data_erasers 过滤器,用于过滤个人数据擦除回调数组。该过滤器允许开发者自定义或扩展个人数据擦除功能,是处理隐私数据请求的关键部分。
关键要点
- wp_privacy_personal_data_erasers 是一个过滤器,用于修改个人数据擦除回调数组。
- 回调函数接受电子邮件地址和页码参数,返回移除状态、消息和是否还有更多页的布尔值。
- 过滤器从 WordPress 4.9.6 版本引入,与隐私数据移除请求处理相关。
代码示例
$erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );注意事项
- 回调函数必须返回包含 'items_removed'、'items_retained'、'messages' 和 'done' 键的数组。
- 确保回调函数正确处理分页逻辑,以支持大数据集的擦除操作。
原文内容
Filters the array of personal data eraser callbacks.
Parameters
$argsarray- An array of callable erasers of personal data. Default empty array.
...$0arrayArray of personal data exporters.callbackcallableCallable eraser that accepts an email address and a page number, and returns an array with boolean values for whether items were removed or retained and any messages from the eraser, as well as if additional pages are available.exporter_friendly_namestringTranslated user facing friendly name for the eraser.
Source
$erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );Changelog
Version Description 4.9.6 Introduced.
User Contributed Notes
You must log in before being able to contribute a note or feedback.