adsense

How to Change WordPress Autosave Features





Disabling Autosave for New and Existing Posts
1. Open your WordPress directory in your FTP editor of choice, and go to the 'wp-admin' folder.
2. Select the file called 'post-new.php' and open it using your preferred text editor. Some FTP programs will allow you to open the file directly and save it back to your server when you're done. Other programs may require that you download the file, then upload it once you've completed your edit.

3. Go to line 46 in the text document; the code for autosaving, 'wp_enqueue_script('autosave');' will be there. Place two forward slashes in front of the code to disable it, i.e. '// wp_enqueue_script('autosave');'. Save the file, and upload the updated file to your server if necessary.
4. Repeat this with the file 'post.php' to disable autosave on your existing posts as well. The same autosave code is located on line 177 of the document. Once you've disable the code, save and upload the file to your server.
Changing Autosave Interval
5. Go to your WordPress directory using your FTP program, and open the file 'wp-config.php' using the text editor of your choice. Depending on your FTP program, you may be able to edit the file directly on the server, or you may need to download the file before editing it and then upload the edited file back onto your server.
6. Scroll to the bottom of your 'wp-config.php' file and add the following code: 'define('AUTOSAVE_INTERVAL', 160 ); // seconds'. The default autosave interval is 60 seconds -- this particular code changes that interval to 160 seconds. You can change autosave to whatever amount of time, in seconds, that you want.
7. Save the file and upload it your server, if necessary.

Comments

1 Response to "How to Change WordPress Autosave Features"

Unknown said... September 18, 2013 at 3:10 AM

Even I am not using Auto save modules but its great feature
Casino Yahoo

Post a Comment

Popular Posts

About