Function Reference/wp update comment count now
Description
Updates the comment count for the post.
Usage
<?php wp_update_comment_count_now($post_id); ?>
Parameters
- $post_id
- (integer) (required) The post ID
- Default: None
Return Values
- (boolean)
- False on '0' $post_id or if post with ID does not exist. True on success.
Examples
Notes
Change Log
Since: 2.5.0
Source File
wp_update_comment_count_now() is located in wp-includes/comment.php
Related