apply_filters( 'wp_privacy_personal_data_email_subject', string $subject, string $sitename, array $email_data )
- Since
- 5.3.0
Filters the subject of the email sent when an export request is completed.
Compatibility
- WordPress
- since 5.3.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$subjectstring- The email subject.
$sitenamestring- The name of the site.
$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 thewp_privacy_personal_data_email_tofilter.
@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_RequestUser request object.$expirationintThe time in seconds until the export file expires.$expiration_datestringThe localized date and time when the export file expires.$message_recipientstringThe address that the email will be sent to. Defaults to the value of$request->email, but can be changed by thewp_privacy_personal_data_email_tofilter.$export_file_urlstringThe export file URL.$sitenamestringThe site name sending the mail.$siteurlstringThe site URL sending the mail.
Where this hook fires · 1
wp-admin/includes/privacy-tools.php:659wp_privacy_send_personal_data_export_email()
Source code
<?php * 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. * } */ $subject = apply_filters( 'wp_privacy_personal_data_email_subject', $subject, $site_name, $email_data ); /* translators: Do not translate EXPIRATION, LINK, SITENAME, SITEURL: those are placeholders. */ $email_text = __( 'Howdy, Your request for an export of personal data has been completed. You mayChangelog
Introduced in 5.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.