wp_blocks_update
Update Gutenberg block attributes or inner HTML in WordPress posts/pages. Use hash references to avoid overwriting blocks changed since reading; preview with dry-run before writing.
Instructions
Update Gutenberg block attributes or inner HTML. Hash references prevent overwriting a block changed since it was read. Supports dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | ||
| ref | Yes | Post or page ID/slug | |
| attrs | No | ||
| dry_run | No | Preview changes without writing | |
| innerHTML | No | ||
| post_type | No | page | |
| attrs_mode | No | merge | |
| allow_normalization | No | Allow saving when parse/serialize normalizes the original content | |
| if_unmodified_since | No | Fail if modified_gmt changed since this timestamp |