Home - Undoing WordPress Changes
On this page

Undoing WordPress Changes

Picture of David Ladiges
David Ladiges
Technical Lead

You shouldn't have clicked that one button. You deleted a paragraph and saved it, deleted a page, ran an update that broke everything, or changed a setting and now can’t remember what it was set to. The first reaction is usually mild panic, and the second question is always the same: can I undo this? Almost always, yes. WordPress doesn’t have a single “undo” button but a stack of safety nets layered on top of each other, ranging from light to heavy. The trick is choosing the right level: don’t restore from a full backup to fix something a single revision could solve, and don’t search through revisions for something that was never there in the first place. Let’s go through the levels from smallest to largest.

Level 1: Undo in the editor

Are you still in the editor and haven't saved the page yet? Then the answer is the undo arrow in the upper-left corner of the toolbar, or the keyboard shortcut Ctrl+Z (Cmd+Z on a Mac). You can undo any step in your current editing session this way. This safety net disappears as soon as you exit the editor, and that’s where level two begins.

Level 2: Revisions, the history of each page

WordPress automatically saves previous versions of every page and post: revisions. Every time you save or update, a new version is added, and while you’re typing, WordPress also creates an automatic interim version (autosave) every minute. So if you’ve messed up a piece of text and saved it, open the page, click “Revisions” on the right side of the settings panel, and scroll through the history. You’ll see exactly what changed in each version, and you can restore an older version with a single click. Even after a browser crash in the middle of writing, you’ll usually find an autosave here that’s no more than a minute old.

Be aware of the limitations of this safety net: revisions only apply to the content of pages and posts. Menus, widgets, settings, and anything saved by a plugin or theme are excluded.

Level 3: the Recycle Bin for deleted items

A deleted page, post, or comment isn’t gone—it’s just been moved to the trash. Go to Pages or Posts and click the Trash tab at the top: there you’ll find everything that’s been deleted in the past thirty days, with a restore option for each item. After those 30 days, WordPress automatically empties the Trash, and the item is permanently gone. If it’s been deleted and is no longer in the Trash, then move on to step five: the backup.

Level 4: Reverting a plugin or theme to the previous version

If a plugin or theme update broke your site, you don’t want to restore your entire site—just that one component. There’s a targeted solution for this: a rollback plugin like WP Rollback displays previous versions of every plugin and theme and restores the one you want with a single click. It’s faster and more precise than a full restore, and your recent content changes remain intact. Do use this only as a temporary measure, though: a rolled-back version lacks the latest security fixes, so report the issue to the developer and update again as soon as a fixed version is available. To learn how to manage updates going forward so that a failure doesn’t cause any stress, read our A Complete Guide to WordPress Management.

Level 5: the backup, the safety net that underpins everything

For anything not covered by the previous levels, there’s the backup (a backup copy of your files and database): deleted settings, a failed experiment in the code, a page that’s been out of the trash for months, or a site that just isn’t working properly anymore after a series of changes. Restoring a backup returns your site entirely to the selected point in time. That’s both its strength and its caveat: everything reverts to that point, so even the successful changes and new submissions made after that point will be lost. Therefore, choose the most recent restore point from before the error, and for an online store or high-traffic site, first consider whether a more targeted restore level will suffice. How to create, store, and restore backups is explained in full in our A Complete Guide to WordPress Backups and Migration.

At Surver: With our managed plans, we automatically back up your site every day. This means there’s always a restore point available that’s no more than one day old, and our support team is available seven days a week to help you restore your site if you’d rather not do it yourself.

The Level That Doesn't Exist: Institutions

Just a fair warning, because this is the trap people fall into: there is no version control system for individual settings. A changed option in Settings, your theme, or a plugin doesn’t have a “restore previous value” button; the only safety net for that is the Level 5 backup. So here are two habits that help minimize this risk: take a screenshot of a settings screen before you change anything, and change settings one at a time, checking the results after each change, so you always know which change caused which effect.

Recovery is nice, but prevention is even better

All these features combined make WordPress remarkably forgiving, but you’ll only truly feel at ease if you’ve set up your safety nets in advance: revisions are included for free, as is the trash can, and you’ll need to handle the backups yourself (or have them handled for you). If you’re still building your site, make sure to adopt those habits from the start; our A Beginner's Guide to Creating a Website with WordPress guides you at the right moments. Then the next wrong click won't cause a panic—it'll just take five minutes to fix.

Have a question about your website or hosting?

Our team is ready to help you! Leave your details and we'll get back to you with no obligation.

Share this article:

Ask your question

Have a question about your website, hosting or WordPress? Enter your details below and we'll get back to you as soon as possible with a personalized answer.

You don't need any technical knowledge. We are happy to think with you.

Ask your question

Related articles