List revisions
wp_list_revisionsList stored revisions for a post or page in reverse chronological order, returning revision ID, save date, and author to inspect edit history.
Instructions
List the stored revisions of one post or page, newest first. Returns revisions: [{revision_id, date, author}]; date is when the revision was saved (RFC 3339, site time), author a user id. The list is empty when the post has no revisions or revisions are turned off for it. A revision's content is returned by wp_get_post with its revision_id. Needs the right to edit the post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the post or page whose revisions are listed. |