How do I disable WordPress autosave?

3 replies
When I'm composing posts on my WP blogs, they are constantly autosaving to draft - every couple of seconds. This is very annoying because each time it does it, the post composition panel refreshes and I'm sent back to the top of the post.

Is this a problem for other people?

And more importantly, is there a way to disable this 'feature'? I've searched through all the options I can see but nothing seems to apply.

Thanks,

Martin
#autosave #disable #wordpress
  • Profile picture of the author Mylinkking
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[1709813].message }}
    • Profile picture of the author Martin Avis
      That's excellent. Thanks very much.

      I'm running WP 2.9.1 and it seems to work perfectly.

      Best wishes,

      Martin
      Signature
      Martin Avis publishes Kickstart Newsletter - Subscribe free at http://kickstartnewsletter.com
      {{ DiscussionBoard.errors[1709870].message }}
  • Profile picture of the author globalpro
    OK Martin,

    I must have missed the solution. What did you do?

    Thanks,

    John
    {{ DiscussionBoard.errors[1710385].message }}
    • Profile picture of the author Mike Boyd
      John

      Not sure if this is the solution Martin used, but all you need to do is add the following line to your wp-config.php file:

      define('WP_POST_REVISIONS',false);

      (make sure to insert between the opening '<?php' and closing '?>')

      If you want to control the frequency of saved revisions instead, use:

      define('AUTOSAVE_INTERVAL',600);

      where 600 is the number of seconds Wordpress will wait between auto saves.
      {{ DiscussionBoard.errors[1710567].message }}

Trending Topics