Monday, February 18, 2019

WordPress | Disable posts auto saving

To disable WordPress autosaving function, simply open your functions.php file and paste the following function
<?php
function disable_auto_saving_post(){
    wp_deregister_script('autosave');
}
add_action('wp_print_scripts', 'disable_auto_saving_post');

No comments:

Post a Comment