If your website connects to the outside world with a proxy and you’re having trouble getting access to Relevanssi Premium updates, there may be a problem with the proxy. In this case, you’d have a perfectly valid API key set up, but WordPress still says your Relevanssi license is not valid.
This problem is usually related to server-side caching and sorts itself out in a couple of days, but if it’s a proxy problem, here’s a code snippet that may help:
add_filter( 'pre_http_send_through_proxy', function( $override, $uri, $check ) {
if ( strpos( $uri, 'www.relevanssi.com' ) !== false ) {
return true;
}
return $override;
}, 10, 3 );