Created
October 17, 2019 15:57
-
-
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
This file contains 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
<?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