wp_restore_snapshot
ROLLBACK a page to a captured pre-write snapshot (from wp_list_snapshots). Writes back whichever store the snapshot holds — Elementor data, or post_content for block/classic pages (plugin transport only). The page's current state is snapshotted first, so a restore can itself be undone. ALWAYS run dry_run=true first: it reports the kind, size and capture time without touching the site; then dry_run=false to write. Refuses with 'not_restorable' when the snapshot was skipped (page too large / nothing before) and returns no_op when the page already matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview what would be written without writing (default false; run true first) | |
| post_id | Yes | Page/post ID | |
| site_id | Yes | The WordPress site ID | |
| revision_id | Yes | Snapshot revision_id from wp_list_snapshots |