Title: user_erasure_fulfillment_email_content
Published: July 20, 2021
Last modified: August 20, 2026

---

# apply_filters( ‘user_erasure_fulfillment_email_content’, string $content, array $email_data )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#changelog)

Filters the body of the data erasure fulfillment notification.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#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.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#parameters)󠁿

 `$content`string

The email content.

`$email_data`array

Data relating to the account action email.

 * `request` [WP_User_Request](https://developer.wordpress.org/reference/classes/wp_user_request/)
 * User request object.
 * `message_recipient` string
 * 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.
 * `privacy_policy_url` string
 * Privacy policy URL.
 * `sitename` string
 * The site name sending the mail.
 * `siteurl` string
 * The site URL sending the mail.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#source)󠁿

    ```php
    $content = apply_filters( 'user_erasure_fulfillment_email_content', $content, $email_data );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/user.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/user.php#L4678)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/user.php#L4678-L4678)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#related)󠁿

| Used by | Description | 
| [_wp_privacy_send_erasure_fulfillment_notification()](https://developer.wordpress.org/reference/functions/_wp_privacy_send_erasure_fulfillment_notification/)`wp-includes/user.php` |

Notifies the user when their erasure request is fulfilled.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.8.0](https://developer.wordpress.org/reference/since/5.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fuser_erasure_fulfillment_email_content%2F)
before being able to contribute a note or feedback.