[ Index ]

PHP Cross Reference of WordPress




/wp-includes/blocks/ -> post-comments.php (summary)

Server-side rendering of the `core/post-comments` block.

File Size: 85 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions


Functions that are not part of a class:

render_block_core_post_comments( $attributes, $content, $block )   X-Ref
Renders the `core/post-comments` block on the server.

return: string Returns the filtered post comments for the current post wrapped inside "p" tags.
param: array    $attributes Block attributes.
param: string   $content    Block default content.
param: WP_Block $block      Block instance.

register_block_core_post_comments()   X-Ref
Registers the `core/post-comments` block on the server.

post_comments_block_form_defaults( $fields )   X-Ref
Use the button block classes for the form-submit button.

return: array Returns the modified fields.
param: array $fields The default comment form arguments.

Generated: Mon Jun 27 01:00:02 2022 Cross-referenced by PHPXref 0.7.1