Skip to content

Instantly share code, notes, and snippets.

@mklasen
Created September 24, 2019 16:28
Show Gist options
  • Save mklasen/a9f38d2b9ee198c779536927c96779ed to your computer and use it in GitHub Desktop.
Save mklasen/a9f38d2b9ee198c779536927c96779ed to your computer and use it in GitHub Desktop.
Disable Domain checking when testing WP's / EDD's updating mechanisms locally
<?php
add_filter('edd_sl_api_request_verify_ssl', '__return_false');
add_filter('https_ssl_verify', '__return_false');
add_filter('https_local_ssl_verify', '__return_false');
add_filter('http_request_host_is_external', '__return_true');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment