Last active
June 1, 2022 20:07
-
-
Save lukecav/77a58b76f21c1dae935595566e4e5708 to your computer and use it in GitHub Desktop.
Disable autosave in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'admin_init', 'disable_autosave' ); | |
function disable_autosave() { | |
wp_deregister_script( 'autosave' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('AUTOSAVE_INTERVAL', 86400); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://ultimateblocks.com/disable-autosave-in-wordpress/
https://developer.wordpress.org/apis/wp-config-php/#modify-autosave-interval