apply_filters( 'wp_count_comments', array|stdClass $count, int $post_id )

Filters the comments count for a given post or the whole site.

Parameters Parameters


(array|stdClass) An empty array or an object containing comment counts.


(int) The post ID. Can be 0 to represent the whole site.

Top ↑

Source Source

File: wp-includes/comment.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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