Action hook 'wp_privacy_personal_data_erased'

in WP Core File wp-admin/includes/privacy-tools.php at line 965

View Source

wp_privacy_personal_data_erased

Action Hook
Description
Fires immediately after a personal data erasure request has been marked completed.

Hook Information

File Location wp-admin/includes/privacy-tools.php View on GitHub
Hook Type Action
Line Number 965

Hook Parameters

Type Name Description
int $request_id The privacy request post ID associated with this request.

Usage Examples

Basic Usage
<?php
// Hook into wp_privacy_personal_data_erased
add_action('wp_privacy_personal_data_erased', 'my_custom_function', 10, 1);

function my_custom_function($request_id) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/privacy-tools.php:965 - How this hook is used in WordPress core
<?php
 960  	 *
 961  	 * @since 4.9.6
 962  	 *
 963  	 * @param int $request_id The privacy request post ID associated with this request.
 964  	 */
 965  	do_action( 'wp_privacy_personal_data_erased', $request_id );
 966  
 967  	return $response;
 968  }

PHP Documentation

<?php
/**
	 * Fires immediately after a personal data erasure request has been marked completed.
	 *
	 * @since 4.9.6
	 *
	 * @param int $request_id The privacy request post ID associated with this request.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/privacy-tools.php
Related Hooks

Related hooks will be displayed here in future updates.