Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hack to work with external APIs that require ssl verification on a local install of WordPress
// include the following in your wp-config.php or any file that is run before WP is loaded
global $wp_filter;
function hm_kill_sslverify( $args, $url ) {
$args['sslverify'] = false;
return $args;
$wp_filter = array(
'sslverify' => array(
0 => array(
'remove_ssl_verify_for_local' => array(
'function' => 'hm_kill_sslverify',
'accepted_args' => 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.