Auto-draft by 1-click
-
It’s very weird, but every time that you click on New post on top right you’ll get a new auto-draft in post table, if you click 10 times on New post you’ll have 10 post auto-draft. I found this code to disable auto-draft:
function disable_autosave() { wp_deregister_script('autosave'); } add_action( 'wp_print_scripts', 'disable_autosave' );I put into /themes/my_theme/functions.php but doesn’t work.
On post.php and post-new.php I comment the code:
wp_enqueue_script('autosave')And didn’t work 😐
There is an alternative to disable it?
Thanks!
The topic ‘Auto-draft by 1-click’ is closed to new replies.