wp_privacy_personal_data_export_file_created action-hookWP 4.9.6

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

Usage

add_action( 'wp_privacy_personal_data_export_file_created', 'wp_kama_privacy_personal_data_export_file_created_action', 10, 5 );

/**
 * Function for `wp_privacy_personal_data_export_file_created` action-hook.
 * 
 * @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.
 *
 * @return void
 */
function wp_kama_privacy_personal_data_export_file_created_action( $archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname ){

	// action...
}
$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.

Changelog

Since 4.9.6 Introduced.
Since 5.4.0 Added the $json_report_pathname parameter.

Where the hook is called

wp_privacy_generate_personal_data_export_file()
wp_privacy_personal_data_export_file_created
wp-admin/includes/privacy-tools.php 563
do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname );

Where the hook is used in WordPress

Usage not found.