Restore a revision
wp_restore_revisionRestore a WordPress post to a chosen revision by ID, copying its title, content, excerpt, and registered meta; terms and status stay unchanged.
Instructions
Restore a post to one of its revisions: WordPress copies the revision's title, content and excerpt, and meta a plugin registered as revisioned, back onto the post; a new revision can result where revisions are on and the content differs. Terms and status stay as they are. Returns restored and post_id. Needs edit_posts and the right to edit that post; an unknown revision id is a not-found error. No AlphaBridge undo point is recorded; the replaced version normally remains in the post's revision list (wp_list_revisions).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"revision_id": "<revision_id>"
},
"name": "wp_restore_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision_id | Yes | Revision id, as wp_list_revisions returns it; the post it belongs to follows from the revision. |