代码如下:
/* 移除自动保存和修订版本 */ remove_action('pre_post_update', 'wp_save_post_revision' ); add_action( 'wp_print_scripts', 'disable_autosave' ); function disable_autosave(){ wp_deregister_script('autosave'); }
上一篇:PHP has encountered a Stack overflow问题如何解决
下一篇:php中使用Ajax时出现Error的解决方法