Created
September 9, 2022 14:18
-
-
Save terrytsang/0f5fc86e08b46b4d1a0a75bd1b404416 to your computer and use it in GitHub Desktop.
Configure autosave timing for WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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