Disable post revision (where to put code)
-
I have had good success previously putting code into my .php files to add or disable different functions, but when I tried to put the following code into my wp-config.php file, it nearly brought down my site.
<?php define(‘WP_POST_REVISIONS’,false); ?>
is the exact code I inserted into wp-config.php symbol for symbol. I am guessing that I put it in the wrong place and did something horrible. The code is meant to disable post revisions and speed up your WP site.
Can anyone tell me where I should put this code exactly for it to work correctly? ( I think before I just put it at the end of everything) Here is my wp-config.php file code, appologies that it makes this post extra long…
[Code moderated as per the Forum Rules. Please use the pastebin]
- The topic ‘Disable post revision (where to put code)’ is closed to new replies.