区块关系
允许的内部区块:
– core/avatar
– core/comment-author-name
– core/comment-content
– core/comment-date
– core/comment-edit-link
– core/comment-reply-link
属性
通过 block.json 中的 attributes 属性定义。
支持
通过 block.json 中的 supports 属性定义。
html:falseinserter:falseinteractivity:clientNavigation:true
上下文
通过 block.json 中的 usesContext 和 providesContext 属性定义。
提供上下文:
commentId→ 属性commentId
区块标记
这是一个 混合区块。它保存静态标记,服务器在渲染期间可能会对其进行增强。
<!-- wp:core/post-comment -->
<div class="wp-block-post-comment"></div>
<!-- /wp:core/post-comment -->
来源
- block.json (参考)
- 源代码目录 — 浏览
edit和save源文件、index.php等。