user_erasure_fulfillment_email_content
云策文档标注
概述
user_erasure_fulfillment_email_content 过滤器用于修改数据擦除完成通知邮件的正文内容。该邮件在管理员完成用户数据擦除请求后发送给用户,允许开发者自定义邮件内容。
关键要点
- 过滤器名称:user_erasure_fulfillment_email_content
- 用途:过滤数据擦除完成通知邮件的正文内容
- 邮件发送时机:用户数据擦除请求被管理员完成时
- 动态替换字符串:###SITENAME###、###PRIVACY_POLICY_URL###、###SITEURL###
- 参数:$content(邮件内容字符串)、$email_data(包含请求对象、收件人等数据的数组)
- 相关函数:_wp_privacy_send_erasure_fulfillment_notification()
- 引入版本:5.8.0
原文内容
Filters the body of the data erasure fulfillment notification.
Description
The email is sent to a user when their data erasure request is fulfilled by an administrator.
The following strings have a special meaning and will get replaced dynamically:
###SITENAME###The name of the site.###PRIVACY_POLICY_URL###Privacy policy page URL.###SITEURL###The URL to the site.
Parameters
$contentstring-
The email content.
$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
$content = apply_filters( 'user_erasure_fulfillment_email_content', $content, $email_data );
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |