Title: wp_privacy_personal_data_email_headers
Published: April 1, 2020
Last modified: May 20, 2026

---

# apply_filters( ‘wp_privacy_personal_data_email_headers’, string|array $headers, string $subject, string $content, int $request_id, array $email_data )

## In this article

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

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_headers/?output_format=md#wp--skip-link--target)

Filters the headers of the email sent with a personal data export file.

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

 `$headers`string|array

The email headers.

`$subject`string

The email subject.

`$content`string

The email content.

`$request_id`int

The request ID.

`$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.
 * `expiration` int
 * The time in seconds until the export file expires.
 * `expiration_date` string
 * The localized date and time when the export file expires.
 * `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 `wp_privacy_personal_data_email_to` filter.
 * `export_file_url` string
 * The export file URL.
 * `sitename` string
 * The site name sending the mail.
 * `siteurl` string
 * The site URL sending the mail.

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

    ```php
    $headers = apply_filters( 'wp_privacy_personal_data_email_headers', $headers, $subject, $content, $request_id, $email_data );
    ```

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

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

| Used by | Description | 
| [wp_privacy_send_personal_data_export_email()](https://developer.wordpress.org/reference/functions/wp_privacy_send_personal_data_export_email/)`wp-admin/includes/privacy-tools.php` |

Send an email to the user with a link to the personal data export file

  |

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

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

## User Contributed Notes

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