wp_privacy_personal_data_export_file_created
Fires right after all personal data has been written to the export file.
Использование
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(строка)
- The full path to the export file on the filesystem.
- $archive_url(строка)
- The URL of the archive file.
- $html_report_pathname(строка)
- The full path to the HTML personal data report on the filesystem.
- $request_id(int)
- The export request ID.
- $json_report_pathname(строка)
- The full path to the JSON personal data report on the filesystem.
Список изменений
С версии 4.9.6 | Введена. |
С версии 5.4.0 | Added the $json_report_pathname parameter. |
Где вызывается хук
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 );