Filters the text of the email sent with a personal data export file.
Description
The following strings have a special meaning and will get replaced dynamically: <h3>EXPIRATION### The date when the URL will be automatically deleted.</h3> <h3>LINK### URL of the personal data export file for the user.</h3> <h3>SITENAME### The name of the site.</h3> <h3>SITEURL### The URL to the site.</h3>
Parameters
$email_textstring
Text in the email.
$request_idint
The request ID for this personal data export.
$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.
698* to the value of `$request->email`, but can be changed699* by the `wp_privacy_personal_data_email_to` filter.700* @type string$export_file_url The export file URL.701* @type string$sitename The site name sending the mail.702* @type string$siteurl The site URL sending the mail.703*/704$content=apply_filters('wp_privacy_personal_data_email_content',$email_text,$request_id,$email_data);705706$content=str_replace('###EXPIRATION###',$expiration_date,$content);707$content=str_replace('###LINK###',sanitize_url($export_file_url),$content);708$content=str_replace('###EMAIL###',$request_email,$content);709$content=str_replace('###SITENAME###',$site_name,$content);710$content=str_replace('###SITEURL###',sanitize_url($site_url),$content);
History
Introduced in 5.3.0. Unchanged from 6.7.7 through 7.1.0.