preloader LOADING

42Works Blog

Posted on January 9, 2020

WordPress 101: Tips, Tricks & Hacks

WordPress as a Content Management System comes loaded with incredible amounts of functionality and customizability. WordPress makes this happen by providing its developers and site owners with features that empower their website design and development process.

How To disable post revisions?

One of the more powerful and useful features of WordPress is – Post Revisions. Plenty of WP users are either unable to or don’t want to use this feature due to limits on their database storage space. The following tip will help you save tons of storage on revisions.

Add the following code to the wp-config.php file to disable post revisions:

define('AUTOSAVE_INTERVAL', 120 ); // seconds
define('WP_POST_REVISIONS', false );

This code will stop all future post revisions, and it expands the auto-save interval-period from 60 to 120 seconds. This implies that your post will be auto-saving at regular intervals of 120 seconds.


Leave a Comment:

Your email address will not be published.

para glider
Have a Project ?
We are just as excited

Contact Us

about your Idea
My name is
& I'm interested in discussing about
for my project
. You can email me at
or ring me up at
.

Virginia United States 3.231.167.166 https://42works.net/tech-hacks/disabling-post-revisions-in-wordpress