apply_filters( 'wp_anonymize_comment', bool|string $anon_message, WP_Comment $comment, array $anonymized_comment )

Filters whether to anonymize the comment.

Parameters

$anon_message

(bool|string) Whether to apply the comment anonymization (bool) or a custom message (string). Default true.

$comment

(WP_Comment) WP_Comment object.

$anonymized_comment

(array) Anonymized comment data.

Source

File: wp-includes/comment.php

View on Trac

Changelog

Version Description
4.9.6 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_anonymize_comment