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 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料