Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
psigate-curl-ssl-version
if ( ! function_exists( 'your_site_curl_ssl_v3' ) ) {
add_action( 'http_api_curl', 'your_site_curl_ssl_v3' );
function your_site_curl_ssl_v3( $handle ) {
curl_setopt($handle, CURLOPT_SSLVERSION, 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment