Skip to content

Instantly share code, notes, and snippets.

@raulillana
Created October 17, 2019 15:57
Show Gist options
  • Save raulillana/866ea2528915497a9f129e7e963b659e to your computer and use it in GitHub Desktop.
Save raulillana/866ea2528915497a9f129e7e963b659e to your computer and use it in GitHub Desktop.
Removes the WordPress verification of SSL Providers (local and remote) to avoid self signed certificates cURL error 60
<?php
// Fixes: "cURL error 60: SSL certificate problem: self signed certificate".
// Removes SSL Providers verification
if ( 'development' === WP_ENV ) {
add_filter( 'https_ssl_verify', '__return_false' );
add_filter( 'https_local_ssl_verify', '__return_false' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment