do_action( ‘wp_update_comment_count’, int $post_id, int $new, int $old )

In this article

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

Parameters

$post_idint
Post ID.
$newint
The new comment count.
$oldint
The old comment count.

Source

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

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.