alleyinteractive / alleyinteractive/wp-match-blocks
Allow matching blocks before or after a given block
未关闭
enhancement
- 主要语言
- PHP
- 星标
- 9
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Description
Inspired by the internal use case given here: https://l.alley.dev/7682a06198
The `before` and `after` parameters might accept an array of `match_block()` parameters, like
```
'before' => [ 'name' => 'my-plugin/my-custom-block' ],
```
```
'after' => [ 'with_innerhtml' => 'Get the whole story' ]
```
### Use Case
As a developer, I want to be able to match the blocks in post content before or after a given block so that I can deliver the two halves of content in separate properties to a third-party application that composes the results in its own way.
贡献指南
评估
这个 Issue 还没有评估数据。