apply_filters( 'user_erasure_fulfillment_email_content', string $content, array $email_data )
- Since
- 5.8.0
Filters the body of the data erasure fulfillment notification.
Description
The email is sent to a user when their data erasure request is fulfilled by an administrator.
The following strings have a special meaning and will get replaced dynamically:
###SITENAME###The name of the site.###PRIVACY_POLICY_URL###Privacy policy page URL.###SITEURL###The URL to the site.
Compatibility
- WordPress
- since 5.8.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
$contentstring- The email content.
$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 theuser_erasure_fulfillment_email_tofilter.
@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_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.
Where this hook fires · 1
wp-includes/user.php:4659_wp_privacy_send_erasure_fulfillment_notification()
Source code
* 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. * } */ $content = apply_filters( 'user_erasure_fulfillment_email_content', $content, $email_data ); $content = str_replace( '###SITENAME###', $email_data['sitename'], $content ); $content = str_replace( '###PRIVACY_POLICY_URL###', $email_data['privacy_policy_url'], $content ); $content = str_replace( '###SITEURL###', sanitize_url( $email_data['siteurl'] ), $content ); $headers = '';Changelog
Introduced in 5.8.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 7.0.4 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.