Site logo

Archived topic

Cant Disable Autosave In Gutenberg ...

4 replies · Started by Patrick on May 6, 2021

Viewing posts 1–5 of 5

It is killing my workflow ;-(

I tried the Disable Gutenberg Autosave plugin, it doesn't work.

I added the following code to our functions.php file, it doesn't work:

add_action( 'admin_init', 'disable_autosave' );
function disable_autosave() {
wp_deregister_script( 'autosave' );
}

Any other suggestions or ideas?

Also just tried adding this to wp-config.php, it didn't work.

define( 'AUTOSAVE_INTERVAL', 60*60*60*24*365 ); // Set autosave interval to 1x per year
define( 'WP_POST_REVISIONS', false ); // Do not save any revisions

Hi Patrick,

I feel like your code should work and not sure why it isn't working for you.

Unfortunately this is something you will need to check with WordPress' support team.

I did ... they blamed it on my theme ;-)

Hmm the theme itself should not interfere with the Gutenberg editor at all.

Easy to test though - does the code work when using Twenty Twenty-one?

This archived topic is closed to new replies.