在数据库中更新帖子的注释计数之前对其进行过滤。
原型
apply_filters( 'pre_wp_update_comment_count_now', int $new, int $old, int $post_id )
参数
$new
(int)
新评论计数。默认为null。
$old
(int)
旧评论数。
$post_id
(int)
帖子ID。
源文件
路径:wp-includes/comment.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/pre_wp_update_comment_count_now/