alleyinteractive / alleyinteractive/wp-match-blocks

Allow matching blocks before or after a given block

未关闭
#14 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。