pre_wp_update_comment_count_now
apply_filters( ‘pre_wp_update_comment_count_now’, int|null $new , int $old , int $post_id )
过滤器::在数据库中更新post之前过滤它的注释计数。
Filter Hook: Filters a post’s comment count before it is updated in the database.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$new | (int | null) | 新的评论计数。默认为空。 |
$old | (int) | 旧的评论很重要。 |
$post_id | (int) | 邮政编码。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.5.0 | wp-includes/comment.php:2525 | 1 | 0 |
pre_wp_update_comment_count_now 为WP2原创文章,链接:https://www.wp2.cn/hook/pre_wp_update_comment_count_now/