WordPress at a glance
filter is not described

pre_wp_update_comment_count_now filter-hook . WP 4.5.0

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


add_filter( 'pre_wp_update_comment_count_now', 'filter_function_name_5280', 10, 3 );
function filter_function_name_5280( $new, $old, $post_id ){
	// filter...

	return $new;
The new comment count.
Default: null
The old comment count.
Post ID.

Where the hook is called

wp-includes/comment.php 2493
$new = apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id );

Where the hook is used (in WP core)

Использование не найдено.