WordPress automatic save function will save articles drafts regularly while editing. By default, WordPress saves a draft every 60 seconds. Code can be used to change or disable this interval directly. However, after WordPress launched the Gutenberg Gutenberg new editor, the code saved automatically on the Internet is not applicable to the new editor. Cause the article ID to be discontinuous.
Here is a plugin to disable the automatic save function of the new editor Gutenberg Gutenberg.
Disable Gutenberg Autosave plug-in
Directly in the WordPress background - plug-in - install plug-ins, search for "Disable Gutenberg Autosave" (disable Gutenberg automatic save) installation. This plug-in seems to only disable the automatic save function of the article, and the article revising function still needs to be changed by code.
After the installation is completed, the plug-in is directly activated, and then directly modified or disabled automatically in the edit articles. Dsabled is directly disabled, seconds seconds, mimutes points.
Forbidden code for classic editor
Open the wp-config.php file under the WordPress program directory and add the following code to require_once (ABSPATH.'wp-settings.php').
- Define ('WP_POST_REVISIONS', false);
- Define ('AUTOSAVE_INTERVAL', false);