wp_update_comment_count

Advertisement

Summery Summery

Fires immediately after a post’s comment count is updated in the database.

Syntax Syntax

do_action( 'wp_update_comment_count', int $post_id, int $new, int $old )

Parameters Parameters

$post_id

(int) Post ID.

$new

(int) The new comment count.

$old

(int) The old comment count.

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.