comments_number() – Displays the language string for the number of comments the current post has.

You appear to be a bot. Output may be restricted

Description

Displays the language string for the number of comments the current post has.

Usage

comments_number( $zero, $one, $more, $post_id );

Parameters

$zero
( string|false ) optional – Optional. Text for no comments. Default false.
$one
( string|false ) optional – Optional. Text for one comment. Default false.
$more
( string|false ) optional – Optional. Text for more than one comment. Default false.
$post_id
( int|WP_Post ) optional – Optional. Post ID or WP_Post object. Default is the global `$post`.

Returns

void

Source

File name: wordpress/wp-includes/comment-template.php
Lines:

1 to 3 of 3
function comments_number( $zero = false, $one = false, $more = false, $post_id = 0 ) {
  echo get_comments_number_text( $zero, $one, $more, $post_id );
}
 

 View on GitHub View on Trac