Core Function
View Source on Trac ↗ block_core_comment_template_render_comments()
block_core_comment_template_render_comments( mixed $comments, mixed $block ) Function that recursively renders a list of nested comments.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $comments WP_Comment[] | The array of comments. Required |
| $block WP_Block | Block instance. Required |
Return Value
(string)
string
Function Information
Since Version
6.3.0 Changed render_block_context priority to `1`.
Source File
wp-includes/blocks/comment-template.php
Advertisement