Products
GG网络技术分享 2025-03-18 16:12 2
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.
图片转代码服务由CSDN问答提供
感谢您的意见,我们尽快改进~
功能建议我正在寻找一种方法来实际阻止插件查询他们的开发者网站,以确定是否有新的 在我正在研究的客户端站点上运行New Relic我可以看到外部调用开发人员站点(例如WPMUdev)需要很长时间才能完成, 并且必须占用CPU时间,这将更好地利用所需的实际流程。</ p>
毋庸置疑,没有理由直接更新实时网站,所以 我正在寻找一种方法来阻止这些查询的发生。 然后可以在本地副本上进行更新并通过GIT推送。</ p>
TIA,Thall。</ p>
</ div>
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 );
###
Agree with you.
I\'ve came through a post which helps you to stop asking about you for the plugin update. For example I\'ve wp-csv plugin, code in functions file will be like:
function filter_plugin_updates( $value ) {unset( $value->response[\'wp-csv/wp-csv.php\'] );
return $value;
}
add_filter( \'site_transient_update_plugins\', \'filter_plugin_updates\' );
Demand feedback