Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
30 Million+
Websites using our plugins
20+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Undo Changes in WordPress with Post Revisions

Have you ever updated a WordPress post and immediately realized that you deleted something important? Or maybe someone else edited a page and accidentally overwrote content you needed?

Before you panic, check your WordPress revisions. WordPress automatically saves previous versions of your posts and pages, allowing you to review what changed and restore an earlier version.

In this guide, we’ll show you exactly how to use post revisions to undo changes in WordPress.

How to undo changes in WordPress with post revisions

💡 Quick Answer: To undo changes you already saved, open the post or page and click the ‘Revisions’ option in the right-hand panel. Move through previous versions to see changes and find the version you want. Then click ‘Restore.’

Explained: How WordPress Post Revisions Work

WordPress 7.0 introduced Visual Revisions, which lets you review changes directly in the post editor. You can move through previous revisions to see what content was added, removed, or changed.

However, if your post uses classic meta boxes added by a plugin, such as WooCommerce or an SEO plugin, WordPress will use the Classic Revisions interface instead. You can still browse and compare previous versions of your post, but the interface looks different.

WordPress class revisions vs visual revisions

We’ll show you how to use both Visual Revisions and Classic Revisions in the steps below.

How to Use Post Revisions to Undo Changes in WordPress

Now that you know how WordPress handles post revisions, let’s look at how to use them to find and restore an earlier version of your content.

First, open the post or page where you want to undo changes.

Next, in the WordPress block editor, open the Post or Page and click the ‘Revisions’ option in the right-hand panel. Now you’ll see the Visual Revisions screen.

Click Revisions in the WordPress block editor

At the top of the screen, you’ll see a slider that lets you move through your saved revisions. As you select different versions, WordPress shows you what changed in the content.

You can also use the markers along the scrollbar to quickly jump to places where changes were made.

Use the slider to move through saved revisions

The changes made in each revision will be highlighted. New content that was added is highlighted in green, deleted content is shown in red, and changed content, including formatting changes, is highlighted in yellow.

On the right side of the screen, you can also see which WordPress user made the changes and the time of the selected revision.

Changes are highlighted and you can see who made the changes on the right side of the screen

This makes it easier to see what changed in each revision and choose the version you want to restore. When you’ve found the version you want to restore, simply click the ‘Restore’ button.

WordPress will then restore that version as your current content, which you can then review and save as normal.

Restoring an earlier revision doesn’t delete your most recent one. Instead, WordPress saves the restored content as a brand-new revision.

ℹ️ Note: If you’d rather use the older interface, you can click the ‘Open classic revisions screen’ link in the top-right corner underneath the Restore button.

Restoring from an Autosave

If WordPress has an autosave that’s newer than your last manual save, you’ll see it at the top of your revision history, labeled as an ‘Autosave’ rather than a saved revision.

Restore a WordPress autosave

You can review it the same way you’d review any other revision. If it’s the version you want, click ‘Restore’ to bring it back into your editor.

Using Classic Post Revisions

If a plugin you’ve installed on your WordPress site is loading a classic meta box on the post you’re editing, you will see the Classic Post Revisions interface instead of the new Visual Revisions.

The classic screen shows a scrollbar you can slide through to browse older revisions, with removed content marked in pink and added content marked in green. Underneath the scrollbar, you’ll also see who made each change and when.

Classic revisions screen in WordPress

With classic revisions, you can also check the box on top that says ‘Compare any two revisions’.

Doing so will split the scrollbar button into two, and you can take each button to a different revision and compare the difference between two distant revisions.

Note: This feature is not currently available in Visual Revisions.

Compare Two revisions WordPress posts in the classic revisions screen

To restore a version from here, simply click the ‘Restore This Revision’ button.

If you are restoring an autosave, the button will read ‘Restore This Autosave.’

That’s it! Either way, once you’ve clicked restore, WordPress saves your recovered content as the newest revision, and you’re free to save or publish it right away.

Video Tutorial

If you don’t enjoy written instructions, then you can watch our video tutorial on how to undo changes in WordPress instead:

Subscribe to WPBeginner

Frequently Asked Questions About Undoing Changes in WordPress With Post Revisions

Here are some questions that our readers have frequently asked about undoing changes in WordPress:

How do I restore a previous version of a page or post in WordPress?

Restoring a previous version is what undoing changes in WordPress actually means, and it’s exactly what post revisions are built for.

Just open the post or page in the editor, click the ‘Revisions’ link in the right-hand panel, and use the slider to find the version you want. Then, click the ‘Restore’ button to bring it back.

How do I undo edited changes in WordPress?

The easiest way to undo edited changes is with the built-in Revisions feature. Click on ‘Revisions’ from the WordPress editor settings sidebar, use the slider to find the point in time you want to return to, and click ‘Restore’ to revert your content.

What if I don’t see post revisions in WordPress?

If you’re not seeing post revisions, first ensure they are enabled in your wp-config.php file (they are by default).

Also, revisions only appear after you’ve saved or updated a post at least twice. If you’ve just started a new post and haven’t saved it multiple times, you won’t see any revisions yet.

How do I limit the number of revisions WordPress saves for each post?

If you’d rather WordPress not keep an unlimited number of revisions for every post, you can cap it by adding this code to your site’s wp-config.php file, typically just above the line that says /* That's all, stop editing! Happy publishing. */:

define( 'WP_POST_REVISIONS', 10 );

Just replace 10 with however many revisions you’d like WordPress to keep for each post.

How do I delete old post revisions in WordPress?

Before deleting anything, we recommend creating a backup your site, since this permanently removes data from your database.

After that, you can install and activate the WP-Optimize plugin, head to WP-Optimize » Database, and check the ‘Clean all post revisions’ box. Then, click the ‘Run optimization’ button to clear them out. This only removes your existing revisions though, WordPress will still save new ones as you keep editing.

We hope that this article helped you understand how to use post revisions to undo changes in WordPress. You may also want to see our guide on how to auto-schedule your WordPress blog posts or our expert picks of the best Gutenberg-friendly WordPress themes.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

35 CommentsLeave a Reply

  1. Regarding revisions, I’m unclear about one thing. You mentioned that revisions don’t slow down the website. However, I’ve encountered several sites with hundreds of published articles and a large number of stored revisions. This meant that there were more than 10,000 revisions (sometimes more) in the database. Not only did it fill up the database, but the website actually started to slow down and experience errors, possibly due to the overloaded database. After using the Sweep plugin to delete the revisions, the site significantly sped up and stopped generating errors. So, it seems that if there are too many revisions, they can fill up the database and cause the site to slow down or generate errors when the database runs out of space. Wouldn’t it be better to regularly monitor the number of revisions and keep them at a reasonable level?

    • It would depend on the size of the site, if the server is running out of space due to the revisions then there is a good chance that the site is large enough that you may need to consider a new hosting provider as that could mean that soon you may run into the error again with new posts in general. For the short term you could look to remove and limit revisions but in the long term we would recommend taking a look at our article below!

      https://www.wpbeginner.com/beginners-guide/when-should-you-change-your-wordpress-web-hosting-top-7-key-indicators/

      Admin

      • Thank you for the link to the article. I’ve always seen revisions as more of a boogeyman than a helper, so I got into the habit of regularly deleting them. However, during my work, I’ve come across websites with around 20,000 revisions, and there I noticed some slowdowns. I’ll definitely read the article because it’s good to know when you might hit the limits of your hosting.

    • If your site says that the revision was removed then the revision may have been deleted which would prevent you from using it.

      Admin

  2. What if my first developers did not have revisions turned on. Then I got a new developer, I messed up my site then had revisions turned on. Will they still work to revert back to the date before they were turned on?

    • If revisions were disabled, you would not have revisions from before it was active.

      Admin

  3. Thank you so much, very informative, I accidentally removed all my content and updated the site but I followed your steps, and yes it’s again back…

  4. Thanks so much for this. I accidentally overwrote a post when I thought I was working in a clone of it. I felt so sick, but this saved me!

  5. I’ve just applied a ton of changes and saved, and accidentally pressed wrong key where all my changes were rolled back. THIS SAVED MY DAY! Thanks a lot!

  6. When I click on the 26 revisions, it takes me to the Compare Revisions of “page”, but it is completely blank. Any ideas how I can see my revisions?

  7. I’m not finding the Revisions section when editing a page.

    I see the Status and Visibility block on the right (Visibility, Publish Date, Author, Move to Trash) and then the Permalink block. No list of revisions anywhere…did something change in WordPress 5.5??

    • You would want to ensure the post has saved versions of if to revert to. You may have plugins or settings that are limiting or removing the post revisions from your site.

      Admin

  8. Is it possible to take something from a previous revision and bring it to your current one without changing the whole thing?

    • You could copy the content and paste it into the current version, but currently reverting to a revision would take all of the previous version’s differences.

      Admin

  9. suggestion – it would be great if you could include a screenshot of “WHERE” to go to get to ‘Revisions’ I used it before, but can’t remember how to get back to it. I was hoping your article would help me, but unfortunately it’s useless to me because I have no idea where “the ‘Document’ panel on the post/page edit screen” is. There is a tab for Pages and a tab for Posts. Where is post/page edit screen??

    • When you edit a specific page or post with the block editor you should see the document editing on the right-hand side of the page

      Admin

  10. Good day,
    I am a complete beginner. I work for a small business, which had an existing website. I was trying to change the look of the website, and lost the original website and all it’s content by saving and publishing to the new theme. Is there any way I can restore the original website?

    • Yes, you can connect to your website using an FTP client. Go to /wp-content/themes/ folder and download all files and folders inside it to your computer as a backup. After that delete all theme folders (using FTP) except the one that last worked on your site.

      Admin

  11. Is this something that has been discontinued? It does not exist in the current version that I have. I just lost a good 1,000 word post and I don’t even know how it happened. I’m so bummed.

  12. I restored a older version by using Revisions. Is there any way to undo that and go back to the newest version again?

  13. I cam to this page seeking help in undoing revisions to themes and other changes. This page is helpful in affirming that posts or pages can have be “revision-ed” but that is not what I need.
    How do I undo other kinds of saved changes?

  14. Is there a way to undo publish in general?

    I was in the themes section, clicked ‘customize’ and by mistake clicked on ‘save & publish’… the page wasnt even close to finished so the original website is gone and I’m stuck with a website with no content yet.. help!

  15. I always knew this was there but never really used. Thanks for bring this up.

    What is the impact and performance hit on the database? Is there a build in way or a good plugin that will selectively flush the old versions for the database?

  16. This is a very practical and great instructional article – wish you had more of these which is geared for the novice. e.g. when doing testimonials – it is cutting off and not allowing two pages – how can this be fixed?

    how do you change your menu to have a button look using an object to insert in your page descriptions rather than plain test.

    this was written well and very easy to follow – some are written for programmers…

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.