user_erasure_fulfillment_email_subject
云策文档标注
概述
user_erasure_fulfillment_email_subject 是一个 WordPress 过滤器,用于自定义用户数据擦除请求完成时发送的邮件主题。它允许开发者根据站点名称和邮件数据动态调整主题内容。
关键要点
- 过滤器名称:user_erasure_fulfillment_email_subject
- 用途:过滤数据擦除请求完成邮件的主题
- 参数:$subject(邮件主题字符串)、$sitename(站点名称字符串)、$email_data(包含邮件相关数据的数组)
- 相关函数:_wp_privacy_send_erasure_fulfillment_notification()
- 引入版本:5.8.0
原文内容
Filters the subject of the email sent when an erasure request is completed.
Parameters
$subjectstring-
The email subject.
$sitenamestring-
The name of the site.
$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
$subject = apply_filters( 'user_erasure_fulfillment_email_subject', $subject, $email_data['sitename'], $email_data );
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |