doumei9589 2018-05-30 13:15
浏览 39
已采纳

Wordpress - 停止插件请求更新

I'm looking for a way to actually stop plugins from querying their developers sites to find out if there is a new version.

From running New Relic on a client site I'm working on I can see that outside calls to developer sites (such as WPMUdev) take a hell of a long time to complete, and must be tying up CPU time that would be much better utilised by actual processes that are needed.

Needless to say, there is no reason for a live site to ever be updated directly, so I'm looking for a way to stop these queries happening. Updates can then be done on a local copy and pushed via GIT.

TIA, Thall.

  • 写回答

2条回答 默认 最新

  • dopgv00024 2018-05-30 13:24
    关注

    Disable automatic WordPress plugin updates:

    add_filter( 'auto_update_plugin', '__return_false' );
    

    Put above code in functions.php

    Disable automatic WordPress theme updates:

     add_filter( 'auto_update_theme', '__return_false' );
    

    Disable automatic updates in WordPress by adding this line of code in your wp-config.php file:

    define( 'WP_AUTO_UPDATE_CORE', false );
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵