本文档介绍了 WordPress 中 Rendered Block 的架构和创建方法,包括其字段定义和 API 端点,适用于开发者处理块渲染操作。
POST /wp/v2/block-renderer/<name> The schema defines all the fields that exist within a Rendered Block record. Any response from these endpoints can be expected to contain the fields below unless the `_filter` query parameter is used or the schema field only appears in a specific context.
rendered
|
The rendered block.
JSON data type: string Context: |
<a href="#schema-name">name</a>
|
Unique registered name for the block. |
<a href="#schema-context">context</a>
|
Scope under which the request is made; determines fields present in response.
Default: One of: |
<a href="#schema-attributes">attributes</a>
|
Attributes for the block. |
<a href="#schema-post_id">post_id</a>
|
ID of the post context. |
POST /wp/v2/block-renderer/<name>