Plugins: HTTP Request Control

Plugins: HTTP Request Control

Block all HTTP requests


define( ‘WP_HTTP_BLOCK_EXTERNAL’, true );

define( ‘WP_ACCESSIBLE_HOSTS’, ‘,*’ );

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


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