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



pre_wp_update_comment_count_now › WordPress过滤钩子

Since4.5.0
已弃用n/a
› apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id )
参数: (3)
  • () new The new comment count. Default null.
    Required: Yes
  • () old The old comment count.
    Required: Yes
  • () post_id Post ID.
    Required: Yes
定义在:
文档:

Filters a post's comment count before it is updated in the database.





源码

$new = apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id );