On this page
apply_filters( 'wp_anonymize_comment', bool|string $anon_message, WP_Comment $comment, array $anonymized_comment )
Filters whether to anonymize the comment.
Parameters
$anon_messagebool|string-
Whether to apply the comment anonymization (bool) or a custom message (string). Default true.
$commentWP_Comment-
WP_Comment object.
$anonymized_commentarray-
Anonymized comment data.
Source
File: wp-includes/comment.php. View all references
$anon_message = apply_filters( 'wp_anonymize_comment', true, $comment, $anonymized_comment );
Related
Used By
| Used By | Description |
|---|---|
| wp_comments_personal_data_eraser() wp-includes/comment.php | Erases personal data associated with an email address from the comments table. |
Changelog
| Version | Description |
|---|---|
| 4.9.6 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_anonymize_comment