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. @type WP_User_Request $request User request object. @type string $message_recipient The address that the email will be sent to. Defaults to the value of $request->email, but can be changed by the user_erasure_fulfillment_email_to filter. @type string $privacy_policy_url Privacy policy URL. @type string $sitename The site name sending the mail. @type string $siteurl The site URL sending the mail.}
$requestWP_User_Request
User request object.
$message_recipientstring
The address that the email will be sent to. Defaults to the value of $request->email, but can be changed by the user_erasure_fulfillment_email_to filter.
4671* by the `user_erasure_fulfillment_email_to` filter.4672* @type string$privacy_policy_url Privacy policy URL.4673* @type string$sitename The site name sending the mail.4674* @type string$siteurl The site URL sending the mail.4675*}4676*/4677$headers=apply_filters('user_erasure_fulfillment_email_headers',$headers,$subject,$content,$request_id,$email_data);46784679$email_sent=wp_mail($user_email,$subject,$content,$headers);46804681if($switched_locale){4682restore_previous_locale();4683}
History
Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.