Hello friends, Thank you for giving time to FreeWebMentor community. I am Prem Tiwari, and today I am going to share a very useful WordPress code snippets. Please pay your attention in this tutorial as I going to share how to disable WordPress post revisions.
This tutorial will help you if you are a WordPress website owner or WordPress developer.
Copy the below code and paste it at the end of the wp-config.php file and save it. It will disable the post revisions in your WordPress website.
1 2 | // disable post revisions define('WP_POST_REVISIONS', false); |
Copy the below code and paste it at the end of the wp-config.php file and save it. It will Limit the revisions of WordPress post. 5 is the number of post revisions.
1 2 | // limit five post revisions define('WP_POST_REVISIONS', 5); |
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: disable wordpress post, wordpress posts, wordpress tutorial, wordpress tutorial for beginner, wordpress tutorial for beginners, wordpress tutorials, wordpress tutorials for beginners