In this tutorial you will learn the way to revert the last changes made in WordPress posts.
WordPress has a built-in capability that allows you to undo changes and go back to an earlier version of a post. This feature is called Revisions or Post Revisions.
When writing posts, most of us make mistakes. Sometimes you even wish that you hadn’t deleted what you wrote earlier. Revisions allow you to go back in time and undo any changes.
Every WordPress site has revisions disabled by default. To enable revisions, open wp-config.php located in your WordPress root directory via FTP or File Manager in the Hosting Control Panel and add the following code before the comment "That’s all, stop editing! Happy blogging" (app. line 72):
define('WP_POST_REVISIONS', true );
Don’t forget to save the changes in the file.
To revert the last changes made in a post, you should perform the following step:
Open the required post in the WordPress admin panel.
In the top right corner in the post editor click Screen Options tab and check Revisions option (see the screenshot below):
You will be able to see the list of all post updates in the Revisions section that will appear in the post editor:
Click any revision from the list and you will be redirected to the revisions editor:
The post revision screen will show you the latest revision of the post with scrollbar on the top. Sliding the button on the scroll bar will take you to different revisions of your post. Changes made in each revision will be highlighted in green and pink colors.
On the top you can see the user who made these changes, time, and other information. WordPress will also let you know if a revision is an autosave or a draft.
You can also use Next and Previous buttons to move around revisions or check Compare any two revisions option.
To restore a revision, simply click Restore This Revision or Restore This Autosave button. WordPress will restore the selected revision as your current post revision and you can then save it as a draft or publish.
This is the end of the tutorial. Now you know how to manage revisions and revert the last changes made in WordPress posts.
Feel free to check the detailed video tutorial below: