diff --git a/admin/class-gdpr-requests-admin.php b/admin/class-gdpr-requests-admin.php index 6dd4bcc5..531cd40d 100644 --- a/admin/class-gdpr-requests-admin.php +++ b/admin/class-gdpr-requests-admin.php @@ -249,6 +249,8 @@ public function delete_user() { $index = sanitize_text_field( wp_unslash( $_POST['index'] ) ); // phpcs:ignore parent::remove_from_requests( $index ); + do_action( 'gdpr_before_user_delete', $email ); + $token = GDPR::generate_pin(); GDPR_Email::send( $user->user_email, 'delete-resolved', array( 'token' => $token ) );