wp_privacy_personal_data_erasers
Filters the array of personal data eraser callbacks.
Usage
add_filter( 'wp_privacy_personal_data_erasers', 'wp_kama_privacy_personal_data_erasers_filter' ); /** * Function for `wp_privacy_personal_data_erasers` filter-hook. * * @param array $args An array of callable erasers of personal data. * * @return array */ function wp_kama_privacy_personal_data_erasers_filter( $args ){ // filter... return $args; }
- $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.
-
-
Changelog
Since 4.9.6 | Introduced. |
Where the hook is called
wp_privacy_personal_data_erasers
wp_privacy_personal_data_erasers
wp_privacy_personal_data_erasers
wp_privacy_personal_data_erasers
wp-admin/includes/ajax-actions.php 5178
$erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );
wp-admin/includes/privacy-tools.php 948
$erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );
wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php 55
$erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );
wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php 126
$erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );
Where the hook is used in WordPress
wp-includes/default-filters.php 428
add_filter( 'wp_privacy_personal_data_erasers', 'wp_register_comment_personal_data_eraser' );