Restore a revision
restore_revisionRestore content to an earlier revision while automatically saving the current version as a new revision, making the change reversible.
Instructions
Restore a piece of content to an earlier revision. The current version is itself saved as a revision first, so this is reversible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Content ID. | |
| type | No | Content type of that ID. | post |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| revision_id | Yes | Revision ID to restore, from list_revisions. |