WordPress开发者和主题制作者的搜索引擎



duplicate_comment_id ›

Since4.4.0
已弃用n/a
apply_filters( 'duplicate_comment_id', $dupe_id, $commentdata )
参数: (2)
  • (int) $dupe_id ID of the comment identified as a duplicate.
    Required: Yes
  • (array) $commentdata Data for the comment being created.
    Required: Yes
定义在:
文档:

Filters the ID, if any, of the duplicate comment found when creating a new comment.

Return an empty value from this filter to allow what WP considers a duplicate comment.





源码

$dupe_id = apply_filters( 'duplicate_comment_id', $dupe_id, $commentdata );