W3cubDocs

/WordPress

do_action( 'wp_update_comment_count', int $post_id, int $new, int $old )

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

Parameters

$post_id

(int) Post ID.

$new

(int) The new comment count.

$old

(int) The old comment count.

Source

File: wp-includes/comment.php

View on Trac

Changelog

Version Description
2.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_update_comment_count