• Hello,

    we have problem that disabling post autosave via hook in child functions doesn’t work:

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

    Any suggestions? Thanks for directions,

    A

Viewing 2 replies - 1 through 2 (of 2 total)
  • Code looks fine.

    Which editor? autosave is for classic

    For block editor you need to do a bit more as far as I understand

    Thread Starter alchan123

    (@alchan123)

    Hello, classic editor with Elementor. We tried now with hook: wp_print_scripts and for now is working fine

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable post autosave via hook’ is closed to new replies.