• Hello. When testing, I placed multiple comments in and got a redirect url to https://127.0.0.1/web/wp-comments-post.php (my local server, developing website). This redirect gives me a very simple, white page and states, “Duplicate comment detected; it looks as though you’ve already said that!” Is there a way for that comment to just show up on the same page the form was submitted (error message, popup message, etc.)? Thank you.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can use the ‘comment_duplicate_trigger’ action hook to do something. What depends on whether comments are submitted via Ajax or via POST. You’d also need custom code on the sending end to handle some sort of failure response and put up a modal message accordingly.

Viewing 1 replies (of 1 total)
  • The topic ‘When Duplicated Comments and redirects to wp-comments-post.php’ is closed to new replies.