Filter hook 'wp_privacy_personal_data_erasers'
in WP Core File wp-admin/includes/privacy-tools.php at line 948
Description
Mark erasure requests as completed after processing is finished. This intercepts the Ajax responses to personal data eraser page requests, and monitors the status of a request. Once all of the processing has finished, the request is marked as completed. / function wp_privacy_process_personal_data_erasure_page( $response, $eraser_index, $email_address, $page, $request_id ) { /* If the eraser response is malformed, don't attempt to consume it; let it pass through, so that the default Ajax processing will generate a warning to the user.
Occurrences
Filename |
Line Number |
wp-admin/includes/privacy-tools.php |
948 |
wp-admin/includes/ajax-actions.php |
5178 |
wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php |
55 |
wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php |
126 |
Parameters
Type |
Name |
Description |
array |
$response |
The response from the personal data eraser for the given page. |
int |
$eraser_index |
The index of the personal data eraser. Begins at 1. |
string |
$email_address |
The email address of the user whose personal data this is. |
int |
$page |
The page of personal data for this eraser. Begins at 1. |
int |
$request_id |
The request ID for this personal data erasure. |
PHP Doc
/**
* Mark erasure requests as completed after processing is finished.
*
* This intercepts the Ajax responses to personal data eraser page requests, and
* monitors the status of a request. Once all of the processing has finished, the
* request is marked as completed.
*
* @since 4.9.6
*
* @see 'wp_privacy_personal_data_erasure_page'
*
* @param array $response The response from the personal data eraser for
* the given page.
* @param int $eraser_index The index of the personal data eraser. Begins
* at 1.
* @param string $email_address The email address of the user whose personal
* data this is.
* @param int $page The page of personal data for this eraser.
* Begins at 1.
* @param int $request_id The request ID for this personal data erasure.
* @return array The filtered response.
*/
function wp_privacy_process_personal_data_erasure_page( $response, $eraser_index, $email_address, $page, $request_id ) {
/*
* If the eraser response is malformed, don't attempt to consume it; let it
* pass through, so that the default Ajax processing will generate a warning
* to the user.
*/