On this page
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_idint-
Post ID.
$newint-
The new comment count.
$oldint-
The old comment count.
Source
File: wp-includes/comment.php. View all references
do_action( 'wp_update_comment_count', $post_id, $new, $old );
Related
Used By
| Used By | Description |
|---|---|
| wp_update_comment_count_now() wp-includes/comment.php | Updates the comment count for the post. |
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_update_comment_count