WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_comments_number

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/comment-template.php apply_filters 870 /**
* Filters the returned comment count for a post.
*
* @since 1.5.0
*
* @param string|int $count A string representing the number of comments a post has, otherwise 0.
* @param int $post_id Post ID.
*/

Hook Parameters

Parameter Type Name Description
string|int $count A string representing the number of comments a post has, otherwise 0.
int $post_id Post ID.