get_comments_number

Advertisement

Summery Summery

Filters the returned comment count for a post.

Syntax Syntax

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

Parameters Parameters

$count

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

$post_id

(int) Post ID.

Source Source

File: wp-includes/comment-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.