Welcome to GPLDL - we are still beta - please report any bugs via the contact form.

GPLDLGPLDL
GPLDL
Download the most popular GPL licensed Premium WordPress Themes & Plugins and WooCommerce Extensions for FREE!
  • Blog
    • Blog Articles
    • Latest Updates & Additions
  • Repository
    • Full Repository
    • Premium WordPress Themes
    • Premium WordPress Plugins
    • Premium WooCommerce Extensions
    • Special Gifts for Premium Members
    • Tutorials
  • Forum
  • Free Membership
  • Donations
  • My GPLDL Account
  • Sign In
Menu back  

How to remove the license code check from the WP-Rocket WordPress Plugin

January 2, 2017

A lot of users have recently asked in the GPLDL Forum to add the highly popular caching Plugin WP-Rocket to the GPLDL Premium WordPress Repository.

Since the WP-Rocket Plugin requires an active subscription from its developer WP-Media that will provide you with a license code you will not only need to download the WP-Rocket Plugin from GPLDL but you will also have to follow these instructions to make WP-Rocket work for you.

How does the WP-Rocket Plugin check the license information?

We had a look at the PHP-code of the WP-Rocket WordPress Plugin and found the routine for checking the serial number is hidden in the /wp-rocket/inc/functions/options.php file from code line 488 on.

The routine checks if there is a valid combination of a WP_ROCKET_KEY in line 10, a valid email that was used for the license purchase in WP_ROCKET_EMAIL in line 15 of the /wp-rocket/license-data.php file and a proper WP_ROCKET_PRIVATE_KEY in line 23 in /wp-rocket/wp-rocket.php.

WP-Rocket only displays the full range of settings if all three filled properly.

We checked a little further and realized that it is quite easy to "fork" WP-Rocket with just a simple adjustment of the code in the /wp-rocket/inc/functions/options.php file and thus create a 100% clean, legit and fully functional "nulled WP-Rocket Plugin" yourself.

How can you create a "nulled version" WP-Rocket Plugin yourself?

You simply need to replace the routine checking for a valid WP-Rocket license key with a simple code snippet that always makes the WP-Rocket Plugin believe that whatever information has been entered above is valid.

wp_rocket_options_php_nulled

Therefore open the file /wp-rocket/inc/functions/options.php in any text editor or your favorite code editor and go to line 488.

Replace the block starting with "function rocket_valid_key()" with "return true" exactly in the same way as you can see it in the screenshot above.

Please double check that you remove the code see on the left hand side and enter exactly the same code as seen in the window on the right hand.

Any typos will most likely break the plugin and may make your site unaccessable - so take your time and act at your own risk!

Upload the modified WP-Rocket Plugin to your website

wp_rocket_settings_nulled

Once the options.php file has been changed and the plugin has been uploaded to your server (via FTP), you will find the entry for WP-Rocket under Settings in the WordPress Admin Panel.

If everything went fine, you will see all option tabs show in the screenshot and you can do the settings for your website.

Final Words

Please also note that you have to make these adjustments in /wp-rocket/inc/functions/options.php with every new version of WP-Rocket.

With this hack you cannot make use of the auto-update within the WP-Rocket plugin (you should definitely get a paid license from WP-Media if you need this feature) and get the update from WP-Media but need to download new versions from GPLDL, make the code adjustments and upload to your website again.

This Guide on how to create your own nulled WP-Rocket Plugin fork which does not require valid license credentials has been thoroughly tested and works well with WP-Rocket 2.91 - the code in future versions may require different adjustments. Use this at your own risk and get a paid license from WP-Media to support their work and obtain support!

adjustmentscheckcheckscodecrackedDIYforkGuideHowToInstructionskeylicenselicense-data.phpnullnulledoptions.phpPHPPluginPremiumremovesectionserialsnippedtruetutorialvalid keywordpressWP_ROCKET_EMAILWP_ROCKET_KEYWP_ROCKET_PRIVATE_KEYWP-MediaWP-Rocketwp-rocket.phpyourself
Related posts
What is the Battle Between WordPress’s Matt Mullenweg and WP Engine about?
October 31, 2024
Why GPLDL Cannot Accept Your WordPress Plugin or Theme Submission
February 20, 2024
How to Ensure Your WordPress Plugin or Theme is Authentic and Secure
January 25, 2024
The Top 10 Open Source Projects Under the GNU Public License
January 23, 2024
Embracing the GPL: How Recent US Court Rulings Bolster Open-Source Software
January 19, 2024
Some common use cases for the Gravity Forms WordPress Plugin
December 19, 2022
Search the Repository
We reward your Donations!
We need your Donation to maintain and grow the GPLDL WordPress Repository - and we reward your generosity with Premium Memberships allowing you to download even more files.

Learn more about donations & rewards...
News from our blog
  • What is the Battle Between WordPress’s Matt Mullenweg and WP Engine about?
    October 31, 2024
  • Why GPLDL Cannot Accept Your WordPress Plugin or Theme Submission
    February 20, 2024
  • How to Ensure Your WordPress Plugin or Theme is Authentic and Secure
    January 25, 2024
Latest Updates & Additions
  • GPLDL News: 108 Updates & Additions today – Download 2842 Premium WordPress items!
    May 2, 2025
  • GPLDL News: 176 Updates & Additions today – Download 2840 Premium WordPress items!
    April 27, 2025
  • GPLDL News: 88 Updates & Additions today – Download 2838 Premium WordPress items!
    April 21, 2025
Free Downloads?

Most of the WordPress Plugins & Themes in the GPLDL repository are available for free download - yes, free! - that is even better than buying at a discount, rebate, promotion or with a coupon code.

After signing up for a free membership, you will instantly get a download link to GPLDL's WordPress plugins and themes including future updates.

Where is the catch? There is none. We re-distribute 100% exact copies of GPL-licensedWordPress items, completely unmodified - that means *not* nulled, cracked or otherwise modified code without any serial numbers, API keys or support.

How can you help? If you like our service, please spread the word. If you can afford to financially support us, please make a donation. All donations will be used for (recurring) subscriptions of WordPress plugins & themes and to grow the catalog!

Tags
authenticity check code collaboration commercial copyleft Copyright developers distribution Download Extensions fork Free fsf functions.php GNU Public License GPL Guide HowTo Instructions Legal license malware Modify nulled open source Plugin Plugins Premium redistribution remove Rights secure Security serial Software software development Themes tutorial Update Website WooCommerce wordpress WordPress Plugins WordPress Themes
Welcome to GPLDL!
scr02We love innovation and we believe in free software!

That's why we strive to make the world's best Premium WordPress Themes & Plugins and WooCommerce Extensions & Themes available for everyone!

Find us on:

FacebookTwitterRssPinterestWebsite
Latest Blog Posts
  • What is the Battle Between WordPress’s Matt Mullenweg and WP Engine about?
    October 31, 2024
  • Why GPLDL Cannot Accept Your WordPress Plugin or Theme Submission
    February 20, 2024
  • How to Ensure Your WordPress Plugin or Theme is Authentic and Secure
    January 25, 2024
Latest Updates & Additions
  • GPLDL News: 108 Updates & Additions today – Download 2842 Premium WordPress items!
    May 2, 2025
  • GPLDL News: 176 Updates & Additions today – Download 2840 Premium WordPress items!
    April 27, 2025
  • GPLDL News: 88 Updates & Additions today – Download 2838 Premium WordPress items!
    April 21, 2025
About GPLDL
  • About GPLDL
  • Need Help?
  • F.A.Q.
  • Terms of Service
  • Privacy Policy
  • Contact
GPLDL - all Rights reserved.
  • About GPLDL
  • Need Help?
  • F.A.Q.
  • Terms of Service
  • Privacy Policy
  • Contact
  • Sign In
GPLDL Widget Menu