user_erasure_fulfillment_email_to
云策文档标注
概述
此文档介绍 WordPress 中的 user_erasure_fulfillment_email_to 过滤器,用于自定义数据擦除完成通知的收件人邮箱地址。开发者可以通过此 Hook 修改通知发送的目标邮箱。
关键要点
- user_erasure_fulfillment_email_to 是一个过滤器,允许修改数据擦除完成通知的收件人邮箱。
- 过滤器接收两个参数:$user_email(字符串,当前收件人邮箱)和 $request(WP_User_Request 对象,触发通知的请求)。
- 此过滤器在 _wp_privacy_send_erasure_fulfillment_notification() 函数中使用,用于在用户数据擦除请求完成时发送通知。
- 自 WordPress 4.9.6 版本引入。
代码示例
$user_email = apply_filters( 'user_erasure_fulfillment_email_to', $request->email, $request );
原文内容
Filters the recipient of the data erasure fulfillment notification.
Parameters
$user_emailstring-
The email address of the notification recipient.
$requestWP_User_Request-
The request that is initiating the notification.
Source
$user_email = apply_filters( 'user_erasure_fulfillment_email_to', $request->email, $request );
Changelog
| Version | Description |
|---|---|
| 4.9.6 | Introduced. |