apply_filters( 'pre_wp_update_comment_count_now', int $new, int $old, int $post_id )

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


Parameters

$new

The new comment count. Default null.

$old

The old comment count.

$post_id

Post ID.


Source

File: wp-includes/comment.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.5.0 Introduced.