Archived topic
license key
5 replies · Started by liz on September 7, 2022
Hi,
I am having a problem with my license key.
403 Forbidden. Your server is not able to communicate with generatepress.com in order to activate your license key. Thanks.
Hi there,
this document provides some options:
https://docs.generatepress.com/article/403-forbidden-when-activating-license-key/
Hi David,
Can I just add the ff. to simple CSS?
add_filter( 'pre_http_request', function( $pre, $args, $url ) {
if ( 'https://generatepress.com' === $url || 'https://generatepress.com/' === $url ) {
return wp_remote_post(
'https://api.generatepress.com',
array(
'timeout' => $args['timeout'],
'sslverify' => $args['sslverify'],
'body' => $args['body'],
)
);
}
return $pre;
}, 10, 3 );
No, its PHP.
Do you have the Code Snippets plugin installed ? If so, create a New Snippet and paste the code in there.
Thanks David!
You're welcome