How can i disable auto save & revisions with `function.php` in wordpress?
문제
I need disable auto save & revisions with function.php in wordpress. What should I do? thanks
해결책
define('WP_POST_REVISIONS', false);
function disable_autosave() {
wp_deregister_script('autosave');
}
add_action('wp_print_scripts', 'disable_autosave');
Simple method
제휴하지 않습니다 wordpress.stackexchange