How to Null and Activate Premium WordPress Themes and Plugins [Valuable info]

  • Thread starter Thread starter Deleted member 752298
  • Start date Start date
Where to find or locate similar file like this >
wordpress-seo-premium/vendor/yoast/license-manager/class-license-manager.php
For other plug-ins or theme. Because this file is only applicable to yoast.
 
I finally could find some time.

For @RandyBB

First of all, be advised that this does NOT work on PHP v8 and later. You should consider other solutions if Herothemes does not update.

My test localhost is PHP v8.2 and had so many errors and crashes working with this and then I realized that functions like "create_function()" are extensively used in the required plugins and that function was removed in PHP 8.

So here are the instructions so you can try it yourself if your server is PHP 7.2 or older. I can not verify the functioning for the reason explained. I deleted all PHP testing software earlier than v8.2. This is becoming like Windows, you are forced to have the latest or die.

---

There are two files to be modified to null the theme.

File #1
In the main folder of the theme, in the file "functions.php", do this:

Code:
Right after this code (around line #9):
if ( ! defined( 'ABSPATH' ) ) exit;

Put this:

update_option( 'knowall_license_key_status', 'valid' );
update_option( 'knowall_license_key', 'L12345678' );

File #2

In the file "knowall / inc / updater / theme-updater-admin.php", around line #227, do this:

Code:
In the function "get_api_response( $api_params )", put the following code block right below that line:

$license_data = new stdClass();
$license_data->license = 'valid';
$license_data->expires = 'Jan-01-2080';
$license_data->site_count = 1;
$license_data->license_limit = 0;
return $license_data;

Done!

Now I'm working with the @missollyy theme.
 
I finally could find some time.

For @RandyBB

First of all, be advised that this does NOT work on PHP v8 and later. You should consider other solutions if Herothemes does not update.

My test localhost is PHP v8.2 and had so many errors and crashes working with this and then I realized that functions like "create_function()" are extensively used in the required plugins and that function was removed in PHP 8.

So here are the instructions so you can try it yourself if your server is PHP 7.2 or older. I can not verify the functioning for the reason explained. I deleted all PHP testing software earlier than v8.2. This is becoming like Windows, you are forced to have the latest or die.

---

There are two files to be modified to null the theme.

File #1
In the main folder of the theme, in the file "functions.php", do this:

Code:
Right after this code (around line #9):
if ( ! defined( 'ABSPATH' ) ) exit;

Put this:

update_option( 'knowall_license_key_status', 'valid' );
update_option( 'knowall_license_key', 'L12345678' );

File #2

In the file "knowall / inc / updater / theme-updater-admin.php", around line #227, do this:

Code:
In the function "get_api_response( $api_params )", put the following code block right below that line:

$license_data = new stdClass();
$license_data->license = 'valid';
$license_data->expires = 'Jan-01-2080';
$license_data->site_count = 1;
$license_data->license_limit = 0;
return $license_data;

Done!

Now I'm working with the @missollyy theme.
@zilog357 okey no worries. I appreciate your effort greatly .. thank you
 
I finally could find some time.

For @RandyBB

First of all, be advised that this does NOT work on PHP v8 and later. You should consider other solutions if Herothemes does not update.

My test localhost is PHP v8.2 and had so many errors and crashes working with this and then I realized that functions like "create_function()" are extensively used in the required plugins and that function was removed in PHP 8.

So here are the instructions so you can try it yourself if your server is PHP 7.2 or older. I can not verify the functioning for the reason explained. I deleted all PHP testing software earlier than v8.2. This is becoming like Windows, you are forced to have the latest or die.

---

There are two files to be modified to null the theme.

File #1
In the main folder of the theme, in the file "functions.php", do this:

Code:
Right after this code (around line #9):
if ( ! defined( 'ABSPATH' ) ) exit;

Put this:

update_option( 'knowall_license_key_status', 'valid' );
update_option( 'knowall_license_key', 'L12345678' );

File #2

In the file "knowall / inc / updater / theme-updater-admin.php", around line #227, do this:

Code:
In the function "get_api_response( $api_params )", put the following code block right below that line:

$license_data = new stdClass();
$license_data->license = 'valid';
$license_data->expires = 'Jan-01-2080';
$license_data->site_count = 1;
$license_data->license_limit = 0;
return $license_data;

Done!

Now I'm working with the @missollyy theme.
I really appreciate the time you've spent on this. Since I didn't have access to a server with the recommended PHP version, I had to install it locally on my computer with an older version of XAMPP. The license is activated, and everything works normally. However, I'm having an issue with updating the theme.

My idea was to find a way to update the theme locally and then transfer it to my server or update it directly from the server. This version works but has many deprecated codes and other issues that need to be addressed. I thought I could update it to get rid of those problems.

Out of curiosity, I tested it on a live server with the latest PHP version and didn’t notice any issues. However, updating is disabled, or rather, the update notification has disappeared. I’m not getting the usual WordPress notification about newer versions being available.
Thank you either way!
 
I really appreciate the time you've spent on this. Since I didn't have access to a server with the recommended PHP version, I had to install it locally on my computer with an older version of XAMPP. The license is activated, and everything works normally. However, I'm having an issue with updating the theme.

My idea was to find a way to update the theme locally and then transfer it to my server or update it directly from the server. This version works but has many deprecated codes and other issues that need to be addressed. I thought I could update it to get rid of those problems.

Out of curiosity, I tested it on a live server with the latest PHP version and didn’t notice any issues. However, updating is disabled, or rather, the update notification has disappeared. I’m not getting the usual WordPress notification about newer versions being available.
Thank you either way!

Yes, remember that for updating they require a license key. Their server will not allow the download of the new version unless it can verify a license. That is why in these cases, updating is always about getting the new version somewhere, a forum, or here, or Deleted member 752298 , etc., and then applying the same modifications.

But as I mentioned and also you mentioned, it is kind of not worth it if an update cannot be obtained. You will probably have crashes and the error log of the server will explode with lots of text every day for the many errors and warnings related to PHP version, compatibility, and deprecated functions.

And that is, if the seller ever addresses the issues in the update. It would be a pity if they don't, considering the high ticket price of their products.

@missollyy

For all ThemeREX themes (so far) you may use the generic activator I shared here.

Just put the following code block around line #8 in the theme's main folder, in the "functions.php" file. When you run the theme, if it asks for activation, just click on the "activate" button and you are ready to go.

Code:
$mytheme = get_template();
update_option( 'trx_addons_theme_' . $mytheme . '_activated', true );
update_option( 'purchase_code_' . $mytheme, 'L12345678' );
update_option( 'purchase_code_src_' . $mytheme, 'L12345678' );

HOWEVER, I have been always able to download and install the demo-data, but looks like Theme REX changed the rules. There was no way I could download the demo-data this time. I don't know if that is for this theme or if it applies for all ThemeREX themes from now on. I tried with the new TRX_addons plugin and with an older one to see if it was the plugin, but to no avail.

Maybe my localhost, or my internet connection? Not sure. You can try it and download all the required plugins, especially Elementor, before trying to download the demo-data. If it downloads, please let me know so I can check what's wrong with my setup.

If the demo-data download does not work, then as I mentioned in other post, you may use the theme as it is working and activated, but it is a bummer that you would have to start the design from scratch instead of having a pre-made content that you can simply edit.



----UPDATE----

Ok, my bad. When downloading the demo-data, click on the "full import" tab first. I was using "partial Import". That made the trick!

Remember to at least install Elementor and RevSlider. The full import brings settings for all those required and suggested plugins.

1722023274088.png
 
Sure, the same as the reply above, as soon as I can accommodate some free time today or tomorrow, I will check it.

Hey man, great work. Can you please do the same for Kicker theme for Themrex? Thank you!

EDIT: Woops! Missed the most recent post of yours. Worked a treat, thank you.
 
Last edited:
@missollyy

For all ThemeREX themes (so far) you may use the generic activator I shared here.

Just put the following code block around line #8 in the theme's main folder, in the "functions.php" file. When you run the theme, if it asks for activation, just click on the "activate" button and you are ready to go.

Code:
$mytheme = get_template();
update_option( 'trx_addons_theme_' . $mytheme . '_activated', true );
update_option( 'purchase_code_' . $mytheme, 'L12345678' );
update_option( 'purchase_code_src_' . $mytheme, 'L12345678' );

HOWEVER, I have been always able to download and install the demo-data, but looks like Theme REX changed the rules. There was no way I could download the demo-data this time. I don't know if that is for this theme or if it applies for all ThemeREX themes from now on. I tried with the new TRX_addons plugin and with an older one to see if it was the plugin, but to no avail.

Maybe my localhost, or my internet connection? Not sure. You can try it and download all the required plugins, especially Elementor, before trying to download the demo-data. If it downloads, please let me know so I can check what's wrong with my setup.


If the demo-data download does not work, then as I mentioned in other post, you may use the theme as it is working and activated, but it is a bummer that you would have to start the design from scratch instead of having a pre-made content that you can simply edit.



----UPDATE----

Ok, my bad. When downloading the demo-data, click on the "full import" tab first. I was using "partial Import". That made the trick!

Remember to at least install Elementor and RevSlider. The full import brings settings for all those required and suggested plugins.

View attachment 362986
Hello,
Please could you help me null a theme it's called bevesi multi vendor theme.
I've been trying to use this method you shared but it's not working, sorry am new to nulling tho.
Also thanks so much for all the knowledge you've been sharing. You're just wonderful.
Thank you so much<3
 
Hello,
Please could you help me null a theme it's called bevesi multi vendor theme.
I've been trying to use this method you shared but it's not working, sorry am new to nulling tho.
Also thanks so much for all the knowledge you've been sharing. You're just wonderful.
Thank you so much<3

Please remember that for working on any theme or plugin, you must provide the download link so I can take a look at it.
 
Please remember that for working on any theme or plugin, you must provide the download link so I can take a look at it.
Sadly the admin won't let me post the link here,
You can get the theme from wp locker, theme name is bevesi.
Thank you so much.

Please remember that for working on any theme or plugin, you must provide the download link so I can take a look at it.
okay finnaly got to upload the link for the theme.
Thank you so much.
https://www.mediafire.com/file/loh3fbu1swjgyj1/bevesi-103.rar/file
 
@muhammadgudaji

Done!

There were 7 modifications in 3 files. All is done in the bevesi theme alone. Everything else can be left untouched:

-bevesi / includes / merlin / theme-register.php - (made 3 modifications)
-bevesi / includes / merlin / class-merlin.php - (made 3 modifications)
-bevesi / functions.php (1 modification)

The modification in the "functions.php" file is to change the "Envato Market" plugin from "Required" to "Optional" as it is only needed for licensing and updates.

Search for the marker "//#######" in those 3 files to see the modifications made.

I installed the demo data from the wizard when activating the theme (not the demo data in the file), and it worked flawlessly. Takes some minutes to download everything though.

DL:
Code:
https://www.mediafire.com/file/vbh5l0m8f0c8e8m/bevesi.zip/file

VT (0/65):
Code:
https://www.virustotal.com/gui/file/e8f45059e28728801bd2e9156f4a8b69b38f21c50c6a6c71d50c8884c2905a19?nocache=1
 
@muhammadgudaji

Done!

There were 7 modifications in 3 files. All is done in the bevesi theme alone. Everything else can be left untouched:

-bevesi / includes / merlin / theme-register.php - (made 3 modifications)
-bevesi / includes / merlin / class-merlin.php - (made 3 modifications)
-bevesi / functions.php (1 modification)

The modification in the "functions.php" file is to change the "Envato Market" plugin from "Required" to "Optional" as it is only needed for licensing and updates.

Search for the marker "//#######" in those 3 files to see the modifications made.

I installed the demo data from the wizard when activating the theme (not the demo data in the file), and it worked flawlessly. Takes some minutes to download everything though.

DL:
Code:
https://www.mediafire.com/file/vbh5l0m8f0c8e8m/bevesi.zip/file

VT (0/65):
Code:
https://www.virustotal.com/gui/file/e8f45059e28728801bd2e9156f4a8b69b38f21c50c6a6c71d50c8884c2905a19?nocache=1
Thank you so so much.
You're my hero
 
Back
Top