Disable cURL verification in WordPress

/**
 * Don't verify SSL certs
 */
add_action( 'http_api_curl', function( $handle ) {
	curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, false );
	curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, false );
}, 10 );

Share your thoughts by leaving a comment below.