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
-
Post ID.
- $new
-
The new comment count.
- $old
-
The old comment count.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |