我已经将此代码添加到我的wp-config.php文件中,以便自动更新核心、主题、插件和关闭电子邮件更新通知。
我在同一主机上的另外两个wordpress网站上成功地使用了完全相同的设置。文件/目录权限似乎是相同的,等等。
由于某些未知的原因,这在当前的wordpress网站上不起作用,我如何诊断此自动更新设置?
/* Auto Update Wordpress Core */
add_filter( 'auto_update_core', '__return_true' );
/* Disable email update notifications */
add_filter( 'auto_core_update_send_email', '__return_false' );
/* Auto Update Theme */
add_filter( 'auto_update_theme', '__return_true' );
/* Auto Update Plugins */
add_filter( 'auto_update_plugin', '__return_true' );发布于 2017-05-24 12:21:58
step1:登录您的cPanel
step2:打开文件管理器,然后转到WordPress安装文件。您需要找到wp-config.php文件。
step3:搜索define( 'AUTOMATIC_UPDATER_DISABLED',true );
step4:找到该行后,将其从WP-CONFIG.PHP文件中删除
step5:单击保存以保存您的更改。
https://stackoverflow.com/questions/44144389
复制相似问题