wp_update_block
Update Gutenberg block attributes on a WordPress page by specifying the block path or finding the block by name and optional matching text.
Instructions
Update Gutenberg block attributes by path or by finding block_name with optional match_text
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Block path from wp_list_blocks (e.g. 0.1.2) | |
| attrs | Yes | Block attributes to merge | |
| page_id | Yes | ||
| block_name | No | Block name to find when path is omitted | |
| match_text | No | Text to match when finding by block_name |