· 6 years ago · Sep 07, 2019, 08:36 AM
1All this is in the file apps/Backend/Pro/Licensing/licensing.php
2
3comment out line 28 which is
4
5define( 'WPSTG_STORE_URL', 'http://wp-staging.com' );
6
7This will ensure it doesn’t contact their api server for license/update checks
8
9Replace line 90 which is
10
11$response = wp_remote_post( WPSTG_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params) );
12
13with this:
14
15$response = array('response'=>array('code'=>200));
16
17Replace line 102 which is
18
19$license_data = json_decode( wp_remote_retrieve_body( $response ) );
20
21with this:
22
23$license_data = (object)array('success'=>true, 'license'=>'valid', 'expires'=>'2048-06-06 23:59:59');
24
25Now use any key you like to license/activate the plugin.
26
27There’s a weekly license check which needs to be sorted out…
28
29Find the function weekly_license_check which is around line 227.
30
31Add as the first line of the function
32
33return;
34
35To allow deactivation without contacting the api server,
36
37Replace line 189 which is
38
39$response = wp_remote_post( WPSTG_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params) );
40
41with this:
42
43$response = array('response'=>array('code'=>200));
44
45Replace line 208 which is
46
47$license_data = json_decode( wp_remote_retrieve_body( $response ) );
48
49with this:
50
51$license_data = (object)array('license'=>'deactivated');