How to Disable Page Revisions in WordPress?
How can I remove Page Revisions in WordPress?
My goal is to reduce the database size.
I am using the code below, but page revisions are still enabled.
define ('WP_PAGE_Revisions', false);
Another use case is If you’re like most people, you’ll want to have a couple of post revisions for each post you add to your blog – just err on the safe side. The best way to accomplish this is to set a hard limit on the # of post revisions that are saved to the wordpress DB. You can try adding the following code (1 line) to your wp-config.php
define( ‘WP_POST_REVISIONS’, 3 );
WordPress: Delete Page or Post, If you wish to remove your old page revision that can be done via a Plugin that is easy and quick. And for future, if you wish to disable the page revision you can do that via wp-config file. define('WP_POST_REVISIONS', false); Thanks. How to Disable and Remove Old Post Revisions in WordPress Disabling/Re-enabling Post Revisions. In order to disable post revisions permanently, Limiting Post Revisions. If you’re anything like me, you’ll want to save a couple Setting the Auto-Save Interval. Instead of limiting the post
define( 'WP_POST_REVISIONS', 0 );
Hope this helps.
Will it break my site if I delete all transient records in wp_options table?, Whether you're in a pursuit to free up some much needed space or prevent the issue, removing old post revisions from your WordPress site is Setting WP_Page_Revisions to false will only stop WordPress from storing future revisions. If you want to remove existing revisions, you'll have to go into your database and delete them or use a plugin like this one to handle it. answered Mar 8 '17 at 17:49
Setting WP_Page_Revisions to false will only stop WordPress from storing future revisions. If you want to remove existing revisions, you'll have to go into your database and delete them or use a plugin like this one to handle it.
Check out these steps on how to delete, limit, and disable WordPress Whenever you save a page or post in WordPress it creates a revision. What are WordPress post revisions? Find the Publish meta box in the top-right corner of the post edit screen. Click the Browse link to view all revisions.
. It holds the information about the plugins which have updates available. Thus I hope you learned how to limit or disable WordPress post revisions and make your WordPress site load faster by keeping it optimized using a plugin like WP Rocket or WP-Optimize all year round. If you found this post helpful and enjoyed the read, please consider sharing this post with your friends and fellow bloggers on social media so
Disable WordPress revisions. Login to your cPanel. Access the cPanel File Manager Code Editor and navigate to your wp-config. php file. Enter in the following code towards the top of the wp-config.php file: * @package WordPress. */ define('WP_POST_REVISIONS', false); // ** MySQL settings - You can get this info from This will disable any future creation of revisions but still one autosave revision will be created per post or page. This is due to the WordPress autosave core function which will save the post every 60 seconds to create a backup to be used in case of browser crash, computer crash or lost internet connection.
Learn how to stop WordPress from saving multiple revisions of your posts. It's a popular WordPress myth that storing multiple post revisions slows down your Disable WordPress revisions. In the steps below I’ll show you how to completly turn off WordPress revisions for your pages and posts. Again we’ll be using the WP_POST_REVISIONS setting in your wp-config.php file to make these changes.