WordPress Autosave - How To Change The Autosave Time Frame | WP Learning Lab

preview_player
Показать описание

WordPress Autosave - How To Change The Autosave Time Frame | WP Learning Lab

define( 'AUTOSAVE_INTERVAL', X );

In this tutorial you will learn how to change the autosave time frame that WordPress uses when you are creating your pages and posts.

By default WordPress autosaves your post every 60 seconds. That doesn't mean another row is added to your database every 60 seconds though. Only one autosave is stored per user, so your old autosaves are overwritten by the new one.

define( 'AUTOSAVE_INTERVAL', X ); // Seconds

You can set your autosave frequency to be less than 60 seconds or more than 60 seconds. You can change it to 99999 seconds, which essentially turns autosave off because that is 11.5 days. I'm sure you would save the post once or twice in that time-frame, so autosave would become irrelevant.

I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.

--------------

If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.

Connect with us:

Рекомендации по теме
Комментарии
Автор

I have been watching your youtube videos a lot, find them very helpful, I just wonder does Autosave code apply to all WordPress content including tables? I have inserted table value code to different table cells, but the updated value doesn't show up on the post until both source table and destination table are saved, I wonder if there is a solution for that? Thank you in advance

longvickle
Автор

I use Gsuite and do not have this options.. Is there a simple way to turn auto save off within wordpress specifically the page editor?

fryingflyingbeestudio