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 Create and get WordPress Custom Field

How to add post from frontend in wordpress without plugin

WordPress Websites Are SEO Friendly Or Not

How to get last insert id in WordPress

Tools:

Crypto Currency

PHPKIDA provides free online the best real-time crypto market price, news, predictions, index with graphs & historical data for 2000+ coins including bitcoin, ethereum, & altcoins from major cryptocurrency exchanges.

Visite Tool

Icon Generator

PHPKIDA provides free online icon generator. Our icon generator help you to edit, modify, resize and customize icon for your website and applications. Convert to a shap you like add icon border, you can change icon border color, border size, background color, icon shadow, icons color, icon size in your own way and save it as a png image.

Visite Tool

Youtube Video Downloader

PHPKIDA provides Free online YouTube video downloader to download YouTube videos quickly in MP4, 3GP, and more. Search your video and free fast download youtube videos.

Visite Tool

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.