wp_posts_restore_revision
Restore a previous post revision: retrieves the revision's title, content, and excerpt, then writes them back to the parent post. The prior state is kept as a new revision.
Instructions
Restore a previous revision of a post. Reads the revision content + title + excerpt, then writes them back to the parent post. The previous state of the parent becomes a new revision automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | ||
| revision_id | Yes |