wpnav_gutenberg_replace_block
Replace existing Gutenberg blocks in WordPress posts by specifying post ID, block path, and new block type with attributes.
Instructions
Replace an existing Gutenberg block at specified path with a new block.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Post ID to modify | |
| path | Yes | Path to block to replace (e.g., [0] = first block, [1, 0] = first child of second block) | |
| block_type | Yes | New block type (e.g., "core/heading", "core/paragraph") | |
| attrs | Yes | New block attributes |