Filter hook 'wp_anonymize_comment'

in WP Core File wp-includes/comment.php at line 3888

Description

Filters whether to anonymize the comment.

Occurrences

Filename Line Number
wp-includes/comment.php 3888

Parameters

Type Name Description
bool|string $anon_message Whether to apply the comment anonymization (bool) or a custom message (string). Default true.
WP_Comment $comment WP_Comment object.
array $anonymized_comment Anonymized comment data.

PHP Doc

/**
		 * Filters whether to anonymize the comment.
		 *
		 * @since 4.9.6
		 *
		 * @param bool|string $anon_message       Whether to apply the comment anonymization (bool) or a custom
		 *                                        message (string). Default true.
		 * @param WP_Comment  $comment            WP_Comment object.
		 * @param array       $anonymized_comment Anonymized comment data.
		 */