Content Area Block
| 开发者 |
iansvo
|
| 更新时间 |
2025年12月1日 00:08 |
| WordPress版本: |
6.8 |
| 版权: |
GPL-2.0-or-later |
| 版权网址: |
版权信息
|
详情介绍:
This block allows you to add an additional block content area to a site-editor template and store the block output inside a meta field. By default, WordPress posts or pages may only store blocks in one place: post_content. These blocks are output on the page using the core/post-content block. This block allows you to have multiple "outlets" where you can add blocks so you can have post-specific blocks appear in more than one location in the template.
The block is a fork of the core/post-content block that uses a customized version of the useEntityBlockEditor hook which supports meta keys. The blocks for your content area are then stored inside that meta key (instead of post_content). This allows you to keep the blocks separate and you can use as many of these on a single template as you want (but in most cases 2 is probably enough). It's all up to you!