我需要在 Wordpress 中禁用自动语言更新。在 Google 上搜索后,我在 wp-config.php 中添加了这两行:
define( 'AUTOMATIC_UPDATER_DISABLED', true );
define( 'WP_AUTO_UPDATE_CORE', false );
但 WordPress 继续更新 .po 和 .mo 文件。
如何禁用自动更新?为什么这些代码行不起作用?
这将禁用所有翻译更新:
add_filter('auto_update_translation', '__return_false');
在此处阅读更多信息: https ://codex.wordpress.org/Configuring_Automatic_Background_Updates#Configuration_via_Filters