Back to Top

How to disable Post Revisions in WordPress?

Disable Post Revisions in WordPress

As i have explained yesterday in post POST AUTOSAVE INTERVAL IN WORDPRESS,When you add/edit the post or pages, wordpress automatically save your content in database in some intervals so admin can’t lost changes in any failure.

WordPress auto save versions of content as a revisions in the posts table. Yesterday I have explained that how we can manage this autosave interval in wordpress.

Today I am going to explain about to disable post revisions or limit the numbers of revisions per post in WordPress without making any changes into WordPress core file.You can manage this with the constant provided by wordpress in adding into wp-config.php file.

Let’s see the code snippet to limit the the number of revisions or disable the post revision.

Limit the Number of Revision:

Disable Post Revisions:

Suggested Reading:

To import terms from csv in wordpress
Cron jobs in WordPress
SSL with WordPress

By Default this constant value in wordpress is TRUE.

Hope this tricks helpful to you.As always, thanks for reading an article. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Share:
Share on Facebook0

Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

How to add custom post type in RSS Feed?

Posted on 3 years ago

Bhumi

How to Create and Use Cookies in PHP

Posted on 11 months ago

Bhumi

Function handling Functions in PHP

Posted on 5 years ago

Bhumi

An Introduction to Gulp JS

Updated 3 hours ago

Bhumi

Getting started with Laravel

Updated 2 days ago

Bhumi

How to use Git init command

Updated 1 week ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 2 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi