Core Function
View Source on Trac ↗ render_block_core_comment_template()
render_block_core_comment_template( mixed $attributes, mixed $content, mixed $block ) Renders the `core/comment-template` block on the server.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $attributes array | Block attributes. Required |
| $content string | Block default content. Required |
| $block WP_Block | Block instance. Required |
Return Value
(string)
string Returns the HTML representing the comments using the layout
defined by the block's inner blocks.
Function Information
Since Version
6.0.0
Source File
wp-includes/blocks/comment-template.php
Advertisement