Post Revisions are a feature introduced in WordPress 2.6. A revision is automatically stored in your database, whenever you save or draft a post or a page. Earlier this year, I posted an article about Deleting Old WordPress Post Revisions at this link.
Today we're going to learn a very simple tweak to disable or limit WordPress post revisions without installing any crappy plugin, which saves a lot of space. We just have to add a little snippet to your our config.php file.
Limit WordPress Post Revisions:
To limit Post revisions simply open wp-config.php (located in root of WordPress installation) and add following code to the end of file:
Replace 3 with maximum number of Post revisions per post/page.
Disable WordPress Post Revisions:
To disable Post revisions simply open wp-config.php (located in root of WordPress installation) and add following code to the end of file:
Save your config.php file & that's it!
Today we're going to learn a very simple tweak to disable or limit WordPress post revisions without installing any crappy plugin, which saves a lot of space. We just have to add a little snippet to your our config.php file.
Limit WordPress Post Revisions:
To limit Post revisions simply open wp-config.php (located in root of WordPress installation) and add following code to the end of file:
define('WP_POST_REVISIONS', 3);
Replace 3 with maximum number of Post revisions per post/page.
Disable WordPress Post Revisions:
To disable Post revisions simply open wp-config.php (located in root of WordPress installation) and add following code to the end of file:
define('WP_POST_REVISIONS', false );
Save your config.php file & that's it!