List undo points
wp_undo_listList your account's undo points—snapshots saved before post, status, settings, builder, search-replace or theme changes—newest first, so you can review and restore recent changes.
Instructions
List the account's own undo points: the snapshots that wp_update_post, wp_bulk_update_status, wp_update_site_settings, wp_update_builder_element, wp_search_replace (page-builder pages) and wp_activate_theme (the theme active before) took before they changed something. Returns undo_points, newest first, each with token, tool, kind, summary, items, bytes, created_at, expires_at and reversible (false, with a reason, where this connection may not act on it), plus count and ttl_days. Only the account's own undo points are visible. They expire after the undo window of this site, at most 7 days (the result reports it as ttl_days), and the store keeps a bounded number and size of points (by default the newest 50 and 100 MB in total), dropping the oldest first. Listing changes nothing: points past these limits are left out of the list and removed the next time a point is recorded. wp_undo restores a point; wp_undo_discard drops one. With undo switched off on the site, the answer says so.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many of the newest undo points to return, 1-50 (clamped; 0 counts as the default); it caps this answer only, not the store. Default 20. |