Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/comment.php | apply_filters | 2745 | /** * Filters a post's comment count before it is updated in the database. * * @since 4.5.0 * * @param int|null $new The new comment count. Default null. * @param int $old The old comment count. * @param int $post_id Post ID. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
int|null | $new | The new comment count. Default null. |
int | $old | The old comment count. |
int | $post_id | Post ID. |