* Registers the personal data eraser for comments.
* @param array $erasers An array of personal data erasers.
* @return array $erasers An array of personal data erasers.
* Erases personal data associated with an email address from the comments table.
* @param string $email_address The comment author email address.
* @param int $page Comment page.
* @param bool|string Whether to apply the comment anonymization (bool).
* Custom prevention message (string). Default true.
* @param WP_Comment $comment WP_Comment object.
* @param array $anonymized_comment Anonymized comment data.
* The `wp_comments_personal_data_eraser()` function should erase user's comments.
'user_id' => '0', // Anonymized.
'comment_author' => 'Anonymous', // Anonymized.
'comment_author_email' => 'deleted@site.invalid', // Anonymized.
'comment_author_url' => 'https://site.invalid', // Anonymized.
'comment_author_IP' => '192.168.0.0', // Anonymized.
'comment_agent' => '', // Anonymized.
* Testing the `wp_comments_personal_data_eraser()` function's output on an empty first page.
* Testing the `wp_comments_personal_data_eraser()` function's output, for the non-empty first page.
* Testing the `wp_comments_personal_data_eraser()` function's output, for an empty second page.
* Testing the `wp_anonymize_comment` filter, to prevent comment anonymization.
* Testing the `wp_anonymize_comment` filter, to prevent comment anonymization, with a custom message.
* Callback for the `wp_anonymize_comment` filter.
* @param bool|string $anonymize Whether to apply the comment anonymization (bool).