user_erasure_complete_email_headers
云策文档标注
概述
此文档介绍 WordPress 中用于过滤数据擦除完成通知邮件头部的 Hook。该 Hook 已弃用,建议使用替代 Hook。
关键要点
- Hook 名称:user_erasure_complete_email_headers
- 功能:过滤数据擦除履行通知的邮件头部
- 状态:自 WordPress 5.8.0 起弃用,应改用 user_erasure_fulfillment_email_headers
- 参数:包括 $headers(邮件头部)、$subject(邮件主题)、$content(邮件内容)、$request_id(请求 ID)、$email_data(账户操作邮件相关数据)等
- 相关函数:_wp_privacy_send_erasure_fulfillment_notification() 用于在擦除请求完成时通知用户
注意事项
此 Hook 已弃用,开发者应迁移到新 Hook user_erasure_fulfillment_email_headers 以避免兼容性问题。
原文内容
Filters the headers of the data erasure fulfillment notification.
Parameters
$headersstring|array-
The email headers.
$subjectstring-
The email subject.
$contentstring-
The email content.
$request_idint-
The request ID.
$email_dataarray-
Data relating to the account action email.
requestWP_User_RequestUser request object.message_recipientstringThe address that the email will be sent to. Defaults to the value of$request->email, but can be changed by theuser_erasure_fulfillment_email_tofilter.privacy_policy_urlstringPrivacy policy URL.sitenamestringThe site name sending the mail.siteurlstringThe site URL sending the mail.
Source
$headers = apply_filters_deprecated(
'user_erasure_complete_email_headers',
array( $headers, $subject, $content, $request_id, $email_data ),
'5.8.0',
'user_erasure_fulfillment_email_headers'
);
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Deprecated. Use ‘user_erasure_fulfillment_email_headers’ instead. |
| 5.4.0 | Introduced. |