Title: wp-admin/includes/privacy-tools.php | Developer.WordPress.org

---

# File: wp-admin/includes/privacy-tools.php

 * hook[wp_privacy_personal_data_email_headers](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_headers/)
 * Filters the headers of the email sent with a personal data export file.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_headers/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:738](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L738-L738)
 * hook[wp_privacy_personal_data_email_to](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_to/)
 * Filters the recipient of the personal data export email notification.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_to/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_to/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:623](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L623-L623)
 * hook[wp_privacy_personal_data_email_subject](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_subject/)
 * Filters the subject of the email sent when an export request is completed.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_subject/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_subject/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:659](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L659-L659)
 * function[wp_privacy_process_personal_data_export_page()](https://developer.wordpress.org/reference/functions/wp_privacy_process_personal_data_export_page/)
 * Intercept personal data exporter page Ajax responses in order to assemble the
   personal data export file.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_privacy_process_personal_data_export_page/#used-by)
   | Uses [12 functions](https://developer.wordpress.org/reference/functions/wp_privacy_process_personal_data_export_page/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:769](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L769-L891)
 * hook[wp_privacy_personal_data_export_file](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_export_file/)
 * Generate the export file from the collected, grouped personal data.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_export_file/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_export_file/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:865](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L865-L865)
 * hook[wp_privacy_personal_data_export_file_created](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_export_file_created/)
 * Fires right after all personal data has been written to the export file.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_export_file_created/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_export_file_created/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:563](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L563-L563)
 * function[wp_privacy_send_personal_data_export_email()](https://developer.wordpress.org/reference/functions/wp_privacy_send_personal_data_export_email/)
 * Send an email to the user with a link to the personal data export file
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_privacy_send_personal_data_export_email/#used-by)
   | Uses [16 functions](https://developer.wordpress.org/reference/functions/wp_privacy_send_personal_data_export_email/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:588](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L588-L751)
 * hook[wp_privacy_personal_data_email_content](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_content/)
 * Filters the text of the email sent with a personal data export file.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_content/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_content/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:705](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L705-L705)
 * function[wp_privacy_generate_personal_data_export_group_html()](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_group_html/)
 * Generate a single group for the personal data export report.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_group_html/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_group_html/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:252](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L252-L301)
 * function[wp_privacy_generate_personal_data_export_file()](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_file/)
 * Generate the personal data export file.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_file/#used-by)
   | Uses [25 functions](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_file/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:310](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L310-L578)
 * function[wp_privacy_process_personal_data_erasure_page()](https://developer.wordpress.org/reference/functions/wp_privacy_process_personal_data_erasure_page/)
 * Mark erasure requests as completed after processing is finished.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_privacy_process_personal_data_erasure_page/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_privacy_process_personal_data_erasure_page/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:915](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L915-L969)
 * hook[wp_privacy_personal_data_erased](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erased/)
 * Fires immediately after a personal data erasure request has been marked completed.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erased/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erased/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:966](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L966-L966)
 * function[_wp_privacy_resend_request()](https://developer.wordpress.org/reference/functions/_wp_privacy_resend_request/)
 * Resend an existing request and return the result.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/_wp_privacy_resend_request/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/_wp_privacy_resend_request/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:18](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L18-L35)
 * function[_wp_privacy_completed_request()](https://developer.wordpress.org/reference/functions/_wp_privacy_completed_request/)
 * Marks a request as completed by the admin and logs the current timestamp.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/_wp_privacy_completed_request/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/_wp_privacy_completed_request/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:46](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L46-L65)
 * function[_wp_personal_data_handle_actions()](https://developer.wordpress.org/reference/functions/_wp_personal_data_handle_actions/)
 * Handle list table actions.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_wp_personal_data_handle_actions/#used-by)
   | Uses [14 functions](https://developer.wordpress.org/reference/functions/_wp_personal_data_handle_actions/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:73](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L73-L187)
 * function[_wp_personal_data_cleanup_requests()](https://developer.wordpress.org/reference/functions/_wp_personal_data_cleanup_requests/)
 * Cleans up failed and expired requests before displaying the list table.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_wp_personal_data_cleanup_requests/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/_wp_personal_data_cleanup_requests/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:195](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/privacy-tools.php#L195-L225)