Comment Template


Contains the block elements used to display a comment, like the title, date, author, avatar and more.

  • Name: core/comment-template
  • Category: design
  • API Version: 3
  • Block Type: Hybrid (static save + server enhancements)

Block Relationships

Parent blocks (direct):
core/comments

Attributes

Defined via the attributes property in block.json.

This block has no custom attributes.

Supports

Defined via the supports property in block.json.

Context

Defined via the usesContext and providesContext properties in block.json.

Uses context:

  • postId

Block Markup

This is a hybrid block. It saves static markup that the server may enhance during rendering.

<!-- wp:comment-template /-->

Source