Restore Revision
wp_restore_revisionRestore a post or page to a previous revision. Fetches the revision content and updates the post with it. Supports dry_run to preview what will change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, shows what would change without applying | |
| post_id | Yes | The post or page ID | |
| site_id | No | Site ID to target (optional if you have only one connected site) | |
| post_type | No | Post type (default: post) | |
| revision_id | Yes | The revision ID to restore |