WPDev.one
Core Function
View Source on Trac ↗

render_block_core_post_comments_form()

render_block_core_post_comments_form( mixed $attributes, mixed $content, mixed $block )

Renders the `core/post-comments-form` 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 form for the current post.

Function Information

Since Version
6.0.0
Source File
wp-includes/blocks/post-comments-form.php
Advertisement