How to null WP Staging Pro – the best plugin for staging

by Festinger in Activation Tutorials on May 29, 2019

Please follow the steps below to activate WP Staging Pro – the best plugin for staging.

Step 1: 

All this is in the file apps/Backend/Pro/Licensing/licensing.php, comment out line 28 which is

define( 'WPSTG_STORE_URL', 'http://wp-staging.com' );

This will make sure it doesn’t contact their API server for license/update checks. Replace line 90 which is

$response = wp_remote_post( WPSTG_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params) );

with this:

$response = array('response'=>array('code'=>200));

Step 2: 

Replace line 102 which is

$license_data = json_decode( wp_remote_retrieve_body( $response ) );

with this:

$license_data = (object)array('success'=>true, 'license'=>'valid', 'expires'=>'2048-06-06 23:59:59');

Now use any key you like to license/activate the plugin.

There’s a weekly license check which needs to be sorted out…

Step 3: 

Find the function weekly_license_check which is around line 227. Add as the first line of the function

return;

To allow deactivation without contacting the API server, replace line 189 which is

$response = wp_remote_post( WPSTG_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params) );

with this:

$response = array('response'=>array('code'=>200));

Step 4: 

Replace line 208 which is

$license_data = json_decode( wp_remote_retrieve_body( $response ) );

with this:

$license_data = (object)array('license'=>'deactivated');

Enjoy!

Categories: Activation Tutorials