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

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


Parameters

$new int|null
The new comment count. Default null.
$old int
The old comment count.
$post_id int
Post ID.

Top ↑

Source

File: wp-includes/comment.php. View all references

$new = apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id );


Top ↑

Changelog

Changelog
Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.