Skip to content

Instantly share code, notes, and snippets.

@vardumper
Created September 22, 2019 11:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vardumper/de01bd8e7e7897f2819d6c25b7f469c4 to your computer and use it in GitHub Desktop.
Save vardumper/de01bd8e7e7897f2819d6c25b7f469c4 to your computer and use it in GitHub Desktop.
Block external communication via wp_remote_post() and wp_remote_get()
define('WP_HTTP_BLOCK_EXTERNAL', true);
define('WP_ACCESSIBLE_HOSTS', 'api.wordpress.org,*.api.mailchimp.com,api.pay1.de,*.google.com');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment