Skip to content

Instantly share code, notes, and snippets.

@vanbo
Created June 21, 2017 09:32
Show Gist options
  • Select an option

  • Save vanbo/cc12eea67de608ea3994a8ef95966241 to your computer and use it in GitHub Desktop.

Select an option

Save vanbo/cc12eea67de608ea3994a8ef95966241 to your computer and use it in GitHub Desktop.
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