Skip to content

Instantly share code, notes, and snippets.

@webzunft
Last active January 22, 2022 08:35
Show Gist options
  • Save webzunft/c7be045a8360e5e08c29819473dcd85d to your computer and use it in GitHub Desktop.
Save webzunft/c7be045a8360e5e08c29819473dcd85d to your computer and use it in GitHub Desktop.
Check cURL version in EDD Software Licensing > activate_license
if ( is_wp_error( $response ) ) {
$body = wp_remote_retrieve_body( $response );
if ( $body ) {
return $body;
} else {
$curl = curl_version();
return __( 'License couldn’t be activated. Please try again later.', 'advanced-ads' ) . " (cURL {$curl['version']})";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment