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

In this article

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

$anon_message = apply_filters( 'wp_anonymize_comment', true, $comment, $anonymized_comment );

Changelog

VersionDescription
4.9.6Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.