WPDev.one
Core Function
View Source on Trac ↗

wp_update_comment_count_now()

wp_update_comment_count_now( mixed $post_id )

Updates the comment count for the post.

Parameters 1 required

Name / Type Description
$post_id
int

Post ID

Required

Return Value

(bool)
True on success, false if the post does not exist.

Function Information

Since Version
2.5.0
Source File
wp-includes/comment.php
Advertisement