How to Disable WordPress Autosave ?

Marc0

Well-known member
Registered
Joined
Jun 6, 2012
Messages
890
Points
28
I got issues with wordpress autosave when making a new post, someone can help me disable it ?

Thanks
 

webdesign

Well-known member
Joined
Jul 5, 2012
Messages
120
Points
0
You can find line in wp-admin/post.php and wp-admin/post-new.php file

find

Code:
wp_enqueue_script('autosave');
replace with ( add // to line )

Code:
// wp_enqueue_script('autosave');
Now Autosave will be disabled on existing posts or making a new post
 
Last edited:

GswHosting

Well-known member
Registered
Joined
Aug 23, 2016
Messages
233
Points
0
Let me jump in, I had that issue in past didn't solve and didn't care much about it.

My opinion it was issue with older WordPress version, some plugins, theme or maybe problem with hosting.

As I said have problem on old WordPress version and on hosting that I don't use it. So I can't say what can cause.

It would be better to find out why auto save make this errors then disable it.
 
Last edited:

Namerie

Member
Registered
Joined
Jan 11, 2017
Messages
30
Points
0
I have thought about disabling the autosave feature on my wordpress but the feature has actually saved me some grief at times when I have run into a problem. I would make sure that you are aware of the consequences of diabling it before you actually do it.
 

WPCycle

Well-known member
Hosting Provider
Registered
Joined
Dec 31, 2016
Messages
123
Points
18
This thread was initially from a few years ago, but the easiest method is editing the wp-config.php file by adding

define('AUTOSAVE_INTERVAL', 86400);

This will delay the autosave to once a day instead of every few minutes.

The other methods to do so require editing the WordPress core files or theme files. The issue with this...any time an update is done to WordPress or the theme...that edit may be lost, whereas the wp-config is a constant that is unaffected.
 
Older Threads
Replies
5
Views
4,969
Replies
3
Views
2,485
Replies
1
Views
2,629
Replies
1
Views
2,270
Replies
2
Views
3,367
Newer Threads
Replies
8
Views
3,865
Replies
9
Views
4,081
Replies
7
Views
3,738
Replies
16
Views
7,127
Replies
7
Views
4,593

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top