Core Function
View Source on Trac ↗ render_block_core_comments()
render_block_core_comments( mixed $attributes, mixed $content, mixed $block ) Renders the `core/comments` 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)
Returns the filtered post comments for the current post wrapped inside "p" tags.
Function Information
Since Version
6.1.0
Source File
wp-includes/blocks/comments.php
Advertisement