A WordPress-centric search engine for devs and theme authors



wp_anonymize_comment ›

Since4.9.6
Deprecatedn/a
apply_filters( 'wp_anonymize_comment', true, $comment, $anonymized_comment )
Parameters: (3)
  • (bool|string) Whether to apply the comment anonymization (bool). Custom prevention message (string). Default true.
    Required: Yes
  • (WP_Comment) $comment WP_Comment object.
    Required: Yes
  • (array) $anonymized_comment Anonymized comment data.
    Required: Yes
Defined at:
Codex:

Filters whether to anonymize the comment.





Source

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