WPDev.one
Core Function
View Source on Trac ↗

get_comments_number_text()

get_comments_number_text( mixed $zero = false, mixed $one = false, mixed $more = false, mixed $post = 0 )

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

Parameters 1 required

Name / Type Description
$zero
string

Optional. Text for no comments. Default false.

$one
string

Optional. Text for one comment. Default false.

$more
string

Optional. Text for more than one comment. Default false.

(int

| WP_Post) $post Optional. Post ID or WP_Post object. Default is the global `$post`.

Required

Return Value

(string)
Language string for the number of comments a post has.

Function Information

Since Version
4.0.0
Source File
wp-includes/comment-template.php
Advertisement