apply_filters( 'get_comments_number', string|int $count, int $post_id )

Filters the returned comment count for a post.


Parameters Parameters

$count

(string|int) A string representing the number of comments a post has, otherwise 0.

$post_id

(int) Post ID.


Top ↑

Source Source

File: wp-includes/comment-template.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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