How to disable Post Revision Feature WordPress

Do you know the Post Revisions feature in WordPress saves copies of each edit made to a WordPress posts or pages. It allows you to revert back to a last copy of that post/page. This can be very helpful but sometimes it can just clutter your Post/Page edit screen. In this tutorial we will show you how to disable the Post Revision feature in WordPress or alternatively, to specify the number of post revisions.

If you want disable the Post Revision feature in your WordPress website then follow these below steps to disable the Post Revision Feature:
Step 1 : You should logged into your website’s hosting control panel, if you are not logged in then do so now.
Step 2: After login your hosting panel open your host server’s File Manager Application. If you do not have access to a file manager, you can make these changes via a FTP Program, such as FileZilla etc.
Step 3 : Open the folder where your WordPress installation is stored. It may be in the root folder if this is the main domain in your hosting account or the domain may have it’s own folder listed like (phpkida.com). The folder you are looking for will have contain these three folders: wp-admin, wp-content, and wp-includes.
Step 4 : From this folder, scroll down and right click on the wp-config.php file and open into code-edit. This is better for you if make a backup copy of this wp-config.php before editing it.
Step 5 : After open wp-config.php file inside the wp-config.php file, add this line of code to completely disable the Post Revisions Feature: define(‘WP_POST_REVISIONS’, false );

Alternatively you can also set max number of time post revisions, you can enter this code below to specify a maximum number of revisions:
For example if you want to set maximum number of post revisions 2 then set like below example or code of line:
define(‘WP_POST_REVISIONS’, 2);
Change the 2 above to whatever amount you want to limit your Post Revisions to.
Step 6 : Now you can save the changes to your wp-config.php file
And there you have it. WordPress will now either disable the Post Revisions feature altogether or will limit the post revisions if you used that code instead.

Leave a Reply

Related Posts: You may like

How to track contact form 7 form in salesforce without plugin

Contact Form 7 Redirect to Thank You Page

How to Validation Business Email in Contact Form 7 WordPress

How to Create and get WordPress Custom Field

PHPKIDA Offering Free Tools:

INSTA DOWNLOADER

Download Instagram Videos & Photos.

Download Now

CURRENCY CONVERTER

Real Time Currency Converter

Convert Now

ROBOST.TXT GEN.

Robots.txt File Creater

Create Now

HTML MINIFIER

Compress yout HTML Code

Minify Now

CSS MINIFIER

Compress yout CSS Code

Minify Now

JAVASCRIPT MINIFIER

Compress yout JavaScript Code

Minify Now

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.