[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/blocks/ -> comment-template.php (summary)

Server-side rendering of the `core/comment-template` block.

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

Defines 3 functions

  block_core_comment_template_render_comments()
  render_block_core_comment_template()
  register_block_core_comment_template()

Functions
Functions that are not part of a class:

block_core_comment_template_render_comments( $comments, $block )   X-Ref
Function that recursively renders a list of nested comments.

param: WP_Comment[] $comments        The array of comments.
param: WP_Block     $block           Block instance.
return: string

render_block_core_comment_template( $attributes, $content, $block )   X-Ref
Renders the `core/comment-template` block on the server.

param: array    $attributes Block attributes.
param: string   $content    Block default content.
param: WP_Block $block      Block instance.
return: string Returns the HTML representing the comments using the layout

register_block_core_comment_template()   X-Ref
Registers the `core/comment-template` block on the server.




Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1