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 );
    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥15 关于c++外部库文件宏的问题,求解
  • ¥15 office打开卡退(新电脑重装office系统后)
  • ¥300 FLUENT 火箭发动机燃烧EDC仿真
  • ¥15 【Hadoop 问题】Hadoop编译所遇问题hadoop-common: make failed with error code 2
  • ¥15 vb6.0+webbrowser无法加载某个网页求解
  • ¥15 RPA财务机器人采购付款流程
  • ¥15 计算机图形多边形及三次样条曲线绘制
  • ¥15 根据protues画的图用keil写程序
  • ¥200 如何使用postGis实现最短领规划?
  • ¥15 pyinstaller打包错误