Plugins: HTTP Request Control

Plugins: HTTP Request Control

Block all HTTP requests

https://gist.github.com/logichub/ef4bc9fc5961ba1c634a

https://core.trac.wordpress.org/ticket/52428#comment:1

https://gist.github.com/nullvariable/56eab9ab40d9fa1f7acc4b1b6e6327e9

or

define( ‘WP_HTTP_BLOCK_EXTERNAL’, true );

define( ‘WP_ACCESSIBLE_HOSTS’, ‘api.wordpress.org,*.github.com’ );

add_action('_admin_init', function () { global $pagenow; if (in_array($pagenow, [‘plugins.php’, ‘plugin-install.php’, ‘themes.php’, ‘update.php’, ‘index.php’, ‘admin.php’, ‘update-core.php’])) { add_filter(‘pre_http_request’, ‘__return_false’, 100); } else { add_filter(‘pre_http_request’, ‘__return_true’, 100); } }, 1);


  • bueltge/wp-offline Offline Mode for WordPress; deactivate auto-update for core, plugins, themes, and HTTP calls. Also, it replaces all instances of Gravatar services with an empty value.

Meinetanne je imao problem sa brojem Update-check-ova koje mlate pluginovi i core

Odlično


date 12. Oct 2022 | modified 25. Jan 2023
filename: Plugins » Update Control » HTTP Requests