Title: wp_privacy_personal_data_export_file
Published: October 5, 2018
Last modified: May 20, 2026

---

# do_action( ‘wp_privacy_personal_data_export_file’, int $request_id )

## In this article

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

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

Generate the export file from the collected, grouped personal data.

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

 `$request_id`int

The export request ID.

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

    ```php
    do_action( 'wp_privacy_personal_data_export_file', $request_id );
    ```

[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#L865)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/privacy-tools.php#L865-L865)

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

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

Intercept personal data exporter page Ajax responses in order to assemble the personal data export file.

  |

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

| Version | Description | 
| [4.9.6](https://developer.wordpress.org/reference/since/4.9.6/) | 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_export_file%2F)
before being able to contribute a note or feedback.