display_comments()

Display comments.

Versions: 9

display_comments( int $total_sum [, string $link, string $class, int $mode ] ) : string

Parameters

$total_sum (int) (Required) Total number of comments.

$link (string) (Optional) Make item clickable. Default value: null

$class (string) (Optional) CSS class for the link. Default value: null

$mode (int) (Optional) Show 2 out of 10 or 2/10 comments. Possible value: 1, 2. Default value: 1

Return Values

(string)

Examples

echo display_comments(100);
// 100 comments

This function can be overridden in your theme.