diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
index b00752e..75c62e3 100644
|
|
function wp_privacy_generate_personal_data_export_file( $request_id ) { |
2167 | 2167 | * @param string $archive_pathname The full path to the export file on the filesystem. |
2168 | 2168 | * @param string $archive_url The URL of the archive file. |
2169 | 2169 | * @param string $html_report_pathname The full path to the personal data report on the filesystem. |
2170 | | * @param string $request_id The export request ID. |
| 2170 | * @param int $request_id The export request ID. |
2171 | 2171 | */ |
2172 | 2172 | do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id ); |
2173 | 2173 | } |
… |
… |
function wp_privacy_send_personal_data_export_email( $request_id ) { |
2199 | 2199 | return new WP_Error( 'invalid', __( 'Invalid request ID when sending personal data export email.' ) ); |
2200 | 2200 | } |
2201 | 2201 | |
2202 | | /** This filter is documented in wp-admin/includes/file.php */ |
| 2202 | /** This filter is documented in wp-includes/functions.php */ |
2203 | 2203 | $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); |
2204 | 2204 | $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration ); |
2205 | 2205 | |
… |
… |
function wp_privacy_process_personal_data_export_page( $response, $exporter_inde |
2321 | 2321 | update_post_meta( $request_id, '_export_data_raw', $export_data ); |
2322 | 2322 | |
2323 | 2323 | // If we are not yet on the last page of the last exporter, return now. |
| 2324 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
2324 | 2325 | $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() ); |
2325 | 2326 | $is_last_exporter = $exporter_index === count( $exporters ); |
2326 | 2327 | $exporter_done = $response['done']; |
… |
… |
function wp_privacy_process_personal_data_export_page( $response, $exporter_inde |
2356 | 2357 | delete_post_meta( $request_id, '_export_data_raw' ); |
2357 | 2358 | update_post_meta( $request_id, '_export_data_grouped', $groups ); |
2358 | 2359 | |
2359 | | // Generate the export file from the collected, grouped personal data. |
| 2360 | /** |
| 2361 | * Generate the export file from the collected, grouped personal data. |
| 2362 | * |
| 2363 | * @since 4.9.6 |
| 2364 | * |
| 2365 | * @param int $request_id The export request ID. |
| 2366 | */ |
2360 | 2367 | do_action( 'wp_privacy_personal_data_export_file', $request_id ); |
2361 | 2368 | |
2362 | 2369 | // Clear the grouped data now that it is no longer needed. |
diff --git src/wp-admin/includes/user.php src/wp-admin/includes/user.php
index d361087..fa868d9 100644
|
|
class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { |
1421 | 1421 | * @return string Email column markup. |
1422 | 1422 | */ |
1423 | 1423 | public function column_email( $item ) { |
| 1424 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
1424 | 1425 | $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() ); |
1425 | 1426 | $exporters_count = count( $exporters ); |
1426 | 1427 | $request_id = $item->ID; |
… |
… |
class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { |
1461 | 1462 | esc_html_e( 'Waiting for confirmation' ); |
1462 | 1463 | break; |
1463 | 1464 | case 'request-confirmed': |
| 1465 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
1464 | 1466 | $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() ); |
1465 | 1467 | $exporters_count = count( $exporters ); |
1466 | 1468 | $request_id = $item->ID; |
… |
… |
class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { |
1533 | 1535 | // Allow the administrator to "force remove" the personal data even if confirmation has not yet been received. |
1534 | 1536 | $status = $item->status; |
1535 | 1537 | if ( 'request-confirmed' !== $status ) { |
| 1538 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
1536 | 1539 | $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); |
1537 | 1540 | $erasers_count = count( $erasers ); |
1538 | 1541 | $request_id = $item->ID; |
… |
… |
class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { |
1573 | 1576 | esc_html_e( 'Waiting for confirmation' ); |
1574 | 1577 | break; |
1575 | 1578 | case 'request-confirmed': |
| 1579 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
1576 | 1580 | $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); |
1577 | 1581 | $erasers_count = count( $erasers ); |
1578 | 1582 | $request_id = $item->ID; |