How to Change the Number of Revisions Saved for Pages and Posts
The next Layers update introduces page revisions for Layers pages, which work in the same way as WordPress revisions. These revisions save the simple content layout of your widgets (the version created when using the Page Transfer option in the Layers Dashboard) and separately, your widget settings and order. This allows you to revert to a previous setup as you build your pages to save the rework of deleting or backtracking to a previous state. One auto-save is created for all Layers pages when the update is applied, or when your page is first created. From there, revisions are only saved when you click the Save Changes button in the Customizer, to a limit of the last 5 to ensure optimal storage and performance for your site. If you are an avid saver, you may want to increase this to allow a greater number of steps you can backtrack easily.
With a Plugin (Recommended)
- Go to Plugins Add New and search for WP Revisions Control
- Click Install.
- When complete, Activate the plugin
- Go to Settings > Writing and enter a number in the Pages field, such as 10. We recommend being moderate here – the higher number of revisions stored, the larger your database and performance could be impacted.
Via wp-config.php (Advanced)
If you are unable to use a plugin, you can add the following code to the bottom of your wp-config.php file, which is located in the root of your WordPress install on your server.
define( 'WP_POST_REVISIONS', 10 );