Title: wp_privacy_personal_data_export_file_created
Published: October 5, 2018
Last modified: August 20, 2026

---

# do_action( ‘wp_privacy_personal_data_export_file_created’, string $archive_pathname, string $archive_url, string $html_report_pathname, int $request_id, string $json_report_pathname )

## In this article

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

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

Fires right after all personal data has been written to the export file.

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

 `$archive_pathname`string

The full path to the export file on the filesystem.

`$archive_url`string

The URL of the archive file.

`$html_report_pathname`string

The full path to the HTML personal data report on the filesystem.

`$request_id`int

The export request ID.

`$json_report_pathname`string

The full path to the JSON personal data report on the filesystem.

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

    ```php
    do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname );
    ```

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

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

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

Generate the personal data export file.

  |

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

| Version | Description | 
| [5.4.0](https://developer.wordpress.org/reference/since/5.4.0/) | Added the `$json_report_pathname` parameter. | 
| [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_created%2F)
before being able to contribute a note or feedback.