Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save terrytsang/0f5fc86e08b46b4d1a0a75bd1b404416 to your computer and use it in GitHub Desktop.
Save terrytsang/0f5fc86e08b46b4d1a0a75bd1b404416 to your computer and use it in GitHub Desktop.
Configure autosave timing for WordPress
<?php
//below code should be added into your wp-config.php file
//Example 1: autosave every 30 seconds
define('AUTOSAVE_INTERVAL', 60); //autosave every 60 seconds
//Example 2: autosave every 5 minutes
define('AUTOSAVE_INTERVAL', 300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment