apply_filters( 'get_comments_number', string|int $comments_number , int $post_id )
Filters the returned comment count for a post.
Parameters
-
$comments_number
string|int -
A string representing the number of comments a post has, otherwise 0.
-
$post_id
int -
Post ID.
Source
File: wp-includes/comment-template.php
.
View all references
return apply_filters( 'get_comments_number', $comments_number, $post_id );
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |