Core Function
View Source on Trac ↗ wp_list_comments()
wp_list_comments( mixed $args = array(), mixed $comments = null ) Displays a list of comments.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (string | array) $args { Optional. Formatting options. Required |
| $comments WP_Comment[] | Optional. Array of WP_Comment objects. Default null. |
Return Value
((void)
(void | string) Void if 'echo' argument is true, or no comments to list.
Otherwise, HTML list of comments.
Function Information
Since Version
2.7.0
Source File
wp-includes/comment-template.php
Advertisement