Duplicate comment detected; it looks as though you’ve already said that!

WooCommerce前台给新上的产品手动添加Review的时候,提示“Duplicate comment detected; it looks as though you’ve already said that!”。

WaimaoB2C-221102

因为是自己写的,所以我确认内容肯定是没有重复的,尝试了几次都不行。谷歌了下,说是同一个用户在同一篇内容重复提交内容才会出现这样的提示,但是我这边的操作应该不会触发这个规则。在WordPress找到一个解决方案:

在functions.php中插入下面的代码:(如果有子主题的话,建议在子主题的functions.php中插入)

// START REMOVE Duplicate comments
//
add_filter('duplicate_comment_id', '__return_false');
//
// END REMOVE Duplicate comments
//
// START stop Going Too Fast on comments
//
add_filter('comment_flood_filter', '__return_false');
//
// END stop Going Too Fast on comments

保存上面的设置之后就可以顺利提交评论,不会再有提示了。

 

请登录后发表评论

    没有回复内容