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.
anchor:truealign:truehtml:falsereusable:falsespacing:margin:truepadding:true
typography:fontSize:truelineHeight:true
interactivity:clientNavigation:true
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
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.