wp_blocks_move
Moves a Gutenberg block relative to another on a WordPress post or page. Uses hash references to prevent overwriting a block changed since it was read, and supports dry-run previews.
Instructions
Move one Gutenberg block relative to another. Hash references prevent overwriting a block changed since it was read. Supports dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| ref | Yes | Post or page ID/slug | |
| from | Yes | ||
| dry_run | No | Preview changes without writing | |
| position | Yes | ||
| post_type | No | page | |
| allow_normalization | No | Allow saving when parse/serialize normalizes the original content | |
| if_unmodified_since | No | Fail if modified_gmt changed since this timestamp |