pre_wp_update_comment_count_now

Advertisement

Summery Summery

Filters a post’s comment count before it is updated in the database.

Syntax Syntax

apply_filters( 'pre_wp_update_comment_count_now', int|null $new, int $old, int $post_id )

Parameters Parameters

$new

The new comment count. Default null.

$old

The old comment count.

$post_id

Post ID.

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

Advertisement

Leave a Reply