wp_restore_revision is one of 214 MCP tools included in Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_restore_revision
DestructiveDescription
Mistakes happen during long edit sessions. wp_restore_revision rolls a post back to any previous revision in one call, and because WordPress turns the current state into a new revision first, the restore itself is undoable. Easy MCP AI verifies the edit_post capability on the parent before restoring, so authorization is enforced cleanly. Pair with wp_list_revisions to discover candidate revision IDs and wp_get_revision to preview before restoring. Note: wp_restore_post_revision() returns the revision ID used as the source, not the new revision ID — call wp_list_revisions after if you need the latest.
See it in action
wp_restore_revision {"status": "success"} Done! I've used wp_restore_revision to complete that for you.
Example Use Cases & Sample Prompts
- Undo a bad edit
- Prompt: “Restore post 142 to revision 5891 — the latest edit broke the formatting.”
- Roll back after a contributor mistake
- Prompt: “Show me the revisions for post 88, then restore it to the version from yesterday.”
- Recover deleted sections
- Prompt: “Restore revision 7012 of post 320 so I get the FAQ section back.”
- Compare then restore
- Prompt: “Get revision 1245, compare it with the current version of post 64, and restore if it looks cleaner.”
- Editor workflow safety net
- Prompt: “Restore the last published version of post 200 — the draft was published by accident.”
Frequently Asked Questions
What does wp_restore_revision do?
Mistakes happen during long edit sessions. wp_restore_revision rolls a post back to any previous revision in one call, and because WordPress turns the current state into a new revision first, the restore itself is undoable. Easy MCP AI verifies the edit_post capability on the parent before restoring, so authorization is enforced cleanly. Pair with wp_list_revisions to discover candidate revision IDs and wp_get_revision to preview before restoring. Note: wp_restore_post_revision() returns the revision ID used as the source, not the new revision ID — call wp_list_revisions after if you need the latest.
How do I use wp_restore_revision with my AI assistant?
Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language — for example: "Restore post 142 to revision 5891 — the latest edit broke the formatting."
Do I need Easy MCP AI to use wp_restore_revision?
Yes. wp_restore_revision is one of 214 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately — no coding required.
Related Tools
RevisionsStep 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_restore_revision and all 96 core tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.