How to activate premium Proteus Themes

by Festinger in Activation Tutorials on September 2, 2019

In the file vendor/proteusthemes/theme-registration-and-updates/src/ThemeRegistration.php find the function get_response which starts around line 722. After line 724 which is:

$purchase_code = empty( $purchase_code ) ? self::get_purchase_code() : $purchase_code;

Add this:

if($action == 'purchase-code-activation'){
return array('code'=>200,'status'=>'activated','purchase_code'=>$purchase_code,'purchase_code_type'=>'xx','message'=>'Your theme is activated!','expires'=>'12-12-2048','email'=>'null@null.com');
} else {
return array('code'=>200,'status'=>'deactivated','message'=>'Theme deactivated'); }

Now find the function recheck_license_expiration in the same file and add this at the start of the function code:

return;

Now in the file vendor/proteusthemes/theme-registration-and-updates/src/ThemeUpdates.php find the function check_for_update and add this to the start of the function code:

return;

You can use any key and email to activate the theme.

Categories: Activation Tutorials