Home / UPDATE Feed / Web Tutorial / wordpress / how to off wp auto Drafts

how to off wp auto Drafts

WordPress automatically saves drafts of posts while you are working. These saved drafts, known as revisions, can be used to roll a post back to a previous edition, if needed. It’s possible to disable auto saving drafts in WordPress by modifying the WordPress configuration file.

#Step 1
Connect to the Web server hosting your WordPress site with an FTP program and log in. Change to the WordPress root directory. Download the file “wp-config.php” to your computer.

#Step 2
Copy the “wp-config.php” file. Name it “wp-config-backup.php” or something similar. This will give you a backup version of the file in case your changes cause something not to work.

#Step 3
Open “wp-config.php” with a text, HTML or PHP editing program.

#Step 4
Look for the following line of code in “wp-config.php“: define(’WP_POST_REVISIONS’, true); Edit this line by changing “true” to “false,” so that the code now reads: define(’WP_POST_REVISIONS’, false);

#Step 5
Save the file in the editing program.

#Step 6
Upload the “wp-config.php” file to your Web server with the FTP program. If prompted by the server if you want to overwrite the current “wp-config.php,” click “Yes” or “OK.”