Filters the headers of the email sent with a personal data export file.
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 int $expiration The time in seconds until the export file expires. @type string $expiration_date The localized date and time when the export file expires. @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 wp_privacy_personal_data_email_to filter. @type string $export_file_url The export file 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.
$expirationint
The time in seconds until the export file expires.
$expiration_datestring
The localized date and time when the export file expires.
$message_recipientstring
The address that the email will be sent to. Defaults to the value of $request->email, but can be changed by the wp_privacy_personal_data_email_to filter.
732* by the `wp_privacy_personal_data_email_to` filter.733* @type string$export_file_url The export file URL.734* @type string$sitename The site name sending the mail.735* @type string$siteurl The site URL sending the mail.736*}737*/738$headers=apply_filters('wp_privacy_personal_data_email_headers',$headers,$subject,$content,$request_id,$email_data);739740$mail_success=wp_mail($request_email,$subject,$content,$headers);741742if($switched_locale){743restore_previous_locale();744}
History
Introduced in 5.4.0. Unchanged from 6.7.7 through 7.1.0.