WordPress修改自动保存文章的时间间隔和版本数

WordPress拥有自动保存文章的功能,防止突然掉线或主机故障等丢失文章,默认情况下是 30 秒保存一次,保留最后的 5 个文章版本。如果你想修改这些默认设置,可以在WordPress根目录下的 wp-config.php 添加:

//一分钟保存一次
 
define('AUTOSAVE_INTERVAL', 60);
 
//保存 10 个版本
 
define('WP_POST_REVISIONS', 10);
 
//一个版本都不保存(即 禁用自动保存功能)
 
define('WP_POST_REVISIONS', false);

请根据自己的实际需要修改添加上面的代码。

来源:

https://www.wpdaxue.com/change-wordpress-autosave-settings.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_32461.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?