Title: wp_privacy_personal_data_erasers
Published: October 5, 2018
Last modified: May 20, 2026

---

# apply_filters( ‘wp_privacy_personal_data_erasers’, array $args )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erasers/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erasers/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erasers/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erasers/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erasers/?output_format=md#wp--skip-link--target)

Filters the array of personal data eraser callbacks.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erasers/?output_format=md#parameters)󠁿

 `$args`array

An array of callable erasers of personal data. Default empty array.

 * `...$0` array
 *  Array of personal data exporters.
    - `callback` callable
    - Callable eraser that accepts an email address and a page number, and returns
      an array with boolean values for whether items were removed or retained and
      any messages from the eraser, as well as if additional pages are available.
    - `exporter_friendly_name` string
    - Translated user facing friendly name for the eraser.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erasers/?output_format=md#source)󠁿

    ```php
    $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/ajax-actions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/ajax-actions.php#L5191)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/ajax-actions.php#L5191-L5191)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erasers/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Privacy_Data_Removal_Requests_List_Table::column_email()](https://developer.wordpress.org/reference/classes/wp_privacy_data_removal_requests_list_table/column_email/)`wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php` |

Outputs the Actions column.

  | 
| [WP_Privacy_Data_Removal_Requests_List_Table::column_next_steps()](https://developer.wordpress.org/reference/classes/wp_privacy_data_removal_requests_list_table/column_next_steps/)`wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php` |

Outputs the Next steps column.

  | 
| [wp_privacy_process_personal_data_erasure_page()](https://developer.wordpress.org/reference/functions/wp_privacy_process_personal_data_erasure_page/)`wp-admin/includes/privacy-tools.php` |

Mark erasure requests as completed after processing is finished.

  | 
| [wp_ajax_wp_privacy_erase_personal_data()](https://developer.wordpress.org/reference/functions/wp_ajax_wp_privacy_erase_personal_data/)`wp-admin/includes/ajax-actions.php` |

Handles erasing personal data via AJAX.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_erasers/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.9.6](https://developer.wordpress.org/reference/since/4.9.6/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_privacy_personal_data_erasers%2F)
before being able to contribute a note or feedback.