Created
September 22, 2019 11:51
-
-
Save vardumper/de01bd8e7e7897f2819d6c25b7f469c4 to your computer and use it in GitHub Desktop.
Block external communication via wp_remote_post() and wp_remote_get()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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