Want to learn How to Undo Changes in WordPress?

Did you make a mistake while editing your WordPress site? Do you want to go back to the previous version / Undo Changes?

Humans make mistakes and WordPress understands this.

You will be amazed to know that WordPress has a built-in feature that allows you to undo changes and go back to a previous version of your post.

This feature is called Post Revisions or simply Revisions.

For each post or page that you are writing, WordPress stores the revision history.

These revisions are stored in the WordPress Database.

Undo Changes in WordPress

Undo Changes in WordPress
image credits https://www.wpbeginner.com/


You can easily go back to these revisions and undo changes.

Step 1: On the sidebar of the WordPress editor you will find a Revisions link. Click on it to open the Revisions interface.

Step 2: You have a slider at the top which you can use to select different revisions. Below that, WordPress will compare the selected revisions with the version before the revision.

If there is a red background, it indicates that something was deleted while the green background indicates that something new was added.

Step 3: You can click on the Restore This Revision button. This will restore the currently selected revision.

You need to be careful here, the Restore revision button will completely replace the current content with the content in the revision.

If you only want to make small changes, like you deleted a line and now you want that back then you can consider copy-pasting that from the previous to the new version

FAQs About WordPress Revisions

Can you Undo Changes the Revision?

Yes. After restoring a previous version, if you change your mind, you can easily undo the revision. When you perform a revision, WordPress does not delete the original version. It gets saved in the list of previous revisions.

Can too many revisions slow down my website?

WordPress stores unlimited Revisions by default. All post revisions are stored in the WordPress database, too many revisions will fill your database.

If you have any plugin that requires database queries then it might slow down your site by searching through them unnecessarily.

How can you limit Post Revisions in WordPress?

WordPress allows you to control how many revisions you want to keep. To limit post revisions, follow these steps:

Step 1: Access your site’s files using an FTP Client like FileZilla

Step 2: Open the wp-config.php File from the site’s root folder. The root folder  will be named something like public_html or public

Step 3: Add this code to your wp-config.php file:

define( ‘WP_POST_REVISIONS’, 10 );