Title: comment_duplicate_message
Published: May 7, 2019
Last modified: May 20, 2026

---

# apply_filters( ‘comment_duplicate_message’, string $comment_duplicate_message )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/comment_duplicate_message/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/comment_duplicate_message/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/comment_duplicate_message/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/comment_duplicate_message/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/comment_duplicate_message/?output_format=md#wp--skip-link--target)

Filters duplicate comment error message.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/comment_duplicate_message/?output_format=md#parameters)󠁿

 `$comment_duplicate_message`string

Duplicate comment error message.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/comment_duplicate_message/?output_format=md#source)󠁿

    ```php
    $comment_duplicate_message = apply_filters( 'comment_duplicate_message', __( 'Duplicate comment detected; it looks as though you&#8217;ve already said that!' ) );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/comment.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/comment.php#L749)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/comment.php#L749-L749)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/comment_duplicate_message/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_allow_comment()](https://developer.wordpress.org/reference/functions/wp_allow_comment/)`wp-includes/comment.php` |

Validates whether this comment is allowed to be made.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/comment_duplicate_message/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.2.0](https://developer.wordpress.org/reference/since/5.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcomment_duplicate_message%2F)
before being able to contribute a note or feedback.