/** * Fix ciphers on curl request */ function uncode_fix_ciphers_curl( $handle, $args, $url ) { if ( strpos( $url, 'api.undsgn.com' ) === false ) { return $handle; } curl_setopt( $handle, CURLOPT_SSL_CIPHER_LIST, 'ecdhe_ecdsa_aes_256_sha' ); return $handle; } add_action( 'http_api_curl', 'uncode_fix_ciphers_curl', 10, 3 );