Restore a revision
wp_restore_revisionRestore 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). Forwarded by AlphaBridge Connect to the one site this connection reaches.
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. |