WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp update comment count now

This page is marked as incomplete. You can help Codex by expanding it.

Contents

Description

Updates the comment count for the post. It is used by wp_update_comment_count().

Usage

<?php wp_update_comment_count_now$post_id ); ?>

Parameters

$post_id
(integer) (required) The post ID
Default: None

Return Values

(boolean) 
False if $post_id is not valid. 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

wp_update_comment_count()