wppaste
WordPress

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 )

Since
4.9.6, 5.4.0
Fires right after all personal data has been written to the export file.

Compatibility

WordPress
since 5.4.0
  • 6.7.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in every tracked release (6.7.10 to 7.1.3).

Parameters

$archive_pathnamestring
The full path to the export file on the filesystem.
$archive_urlstring
The URL of the archive file.
$html_report_pathnamestring
The full path to the HTML personal data report on the filesystem.
$request_idint
The export request ID.
$json_report_pathnamestring
The full path to the JSON personal data report on the filesystem.

Where this hook fires · 1

  • wp-admin/includes/privacy-tools.php:563wp_privacy_generate_personal_data_export_file()

Source code

			 * @param string $archive_pathname     The full path to the export file on the filesystem.			 * @param string $archive_url          The URL of the archive file.			 * @param string $html_report_pathname The full path to the HTML personal data report on the filesystem.			 * @param int    $request_id           The export request ID.			 * @param string $json_report_pathname The full path to the JSON personal data report on the filesystem.			 */			do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname );		}	} else {		$error = __( 'Unable to open personal data export file (archive) for writing.' );	} 	// Remove the JSON file.

Changelog

Introduced in 4.9.6. Unchanged from 6.7.10 through 7.1.3.

  1. 6.7.10
  2. 6.8.11
  3. 6.9.10
  4. 7.0.7
  5. 7.1.3

Signature, return type and hooks compared across 5 parsed releases.

5.4.0
Added the $json_report_pathname parameter.from the docblock
4.9.6
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 6.7.10 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.