Action hook 'wp_update_comment_count'

in WP Core File wp-includes/comment.php at line 2768

Description

Fires immediately after a post's comment count is updated in the database.

Occurrences

Filename Line Number
wp-includes/comment.php 2768

Parameters

Type Name Description
int $post_id Post ID.
int $new The new comment count.
int $old The old comment count.

PHP Doc

/**
	 * Fires immediately after a post's comment count is updated in the database.
	 *
	 * @since 2.3.0
	 *
	 * @param int $post_id Post ID.
	 * @param int $new     The new comment count.
	 * @param int $old     The old comment count.
	 */