在整个站点中重复使用此设计。
属性
通过块.json 中的 attributes 属性定义。
支持
通过块.json 中的 supports 属性定义。
customClassName:falsehtml:falseinserter:falserenaming:falseinteractivity:clientNavigation:true
customCSS:falsevisibility:false
上下文
通过块.json 中的 usesContext 和 providesContext 属性定义。
提供上下文:
pattern/overrides→ 属性content
块标记
这是一个 动态块。它在服务器上渲染,不会在帖子内容中保存 HTML。
在帖子内容中,它存储为块注释:
<!-- wp:core/block {"ref":123} /-->
来源
- block.json (参考)
- 源目录 — 浏览
edit和save源文件、index.php等。