本文档列出了不同 API 版本之间的变更,主要涉及 WordPress 块编辑器(Gutenberg)的 API 版本演进及其对块开发的影响,包括 iframe 渲染和钩子使用等关键更新。
建议块作者参考迁移指南提前在 iframe 编辑器中测试块兼容性,以确保平滑过渡到新版本。
This document lists the changes made between the different API versions.
apiVersion of registered blocks.edit implementation, the block author must use the useBlockProps() hook.save is processed. To include them, the block author must explicitly use useBlockProps.save() and add to their block wrapper.Initial version.