Core Function
View Source on Trac ↗ comments_popup_link()
comments_popup_link(
mixed $zero = false,
mixed $one = false,
mixed $more = false,
mixed $css_class = '',
mixed $none = false
) Displays the link to the comments for the current post ID.
Parameters 4 required
| Name / Type | Description |
|---|---|
| (false | | string) $zero Optional. String to display when no comments. Default false. Required |
| (false | | string) $one Optional. String to display when only one comment is available. Default false. Required |
| (false | | string) $more Optional. String to display when there are more than one comment. Default false. Required |
| $css_class string | Optional. CSS class to use for comments. Default empty. |
| (false | | string) $none Optional. String to display when comments have been turned off. Default false. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
0.71
Source File
wp-includes/comment-template.php
Advertisement