Allows the erasure response to be consumed by destinations in addition to Ajax.
Parameters
$responsearray
{ The personal data for the given exporter and page number. @type bool $items_removed Whether items were actually removed or not. @type bool $items_retained Whether items were retained or not. @type string[] $messages An array of messages to add to the personal data export file. @type bool $done Whether the eraser is finished or not.}
$items_removedbool
Whether items were actually removed or not.
$items_retainedbool
Whether items were retained or not.
$messagesstring[]
An array of messages to add to the personal data export file.
$donebool
Whether the eraser is finished or not.
$eraser_indexint
The index of the eraser that provided this data.
$email_addressstring
The email address associated with this personal data.
$pageint
The page number for this response.
$request_idint
The privacy request post ID associated with this request.
$eraser_keystring
The key (slug) of the eraser that provided this data.
5331* @param int$eraser_index The index of the eraser that provided this data.5332* @param string$email_address The email address associated with this personal data.5333* @param int$page The page number for this response.5334* @param int$request_id The privacy request post ID associated with this request.5335* @param string$eraser_key The key(slug) of the eraser that provided this data.5336*/5337$response=apply_filters('wp_privacy_personal_data_erasure_page',$response,$eraser_index,$email_address,$page,$request_id,$eraser_key);53385339if(is_wp_error($response)){5340wp_send_json_error($response);5341}53425343wp_send_json_success($response);
History
Introduced in 4.9.6. Unchanged from 6.7.7 through 7.1.0.