Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Activate Hucommerce Pro modules. Sorry Surbma :(
- *
- * @since 1.0.0
- * @return void
- */
- function acme_hucommerce_spoof_license_status()
- {
- $_fake_status = [
- "last_check" => time(),
- "status" => "active",
- "success" => true,
- "unlimited_activations" => true,
- "total_activations_purchased" => 10000,
- "total_activations" => 1,
- "activations_remaining" => 9999,
- "activated" => true,
- ];
- add_option("surbma_hc_license_status", $_fake_status);
- update_option("surbma_hc_license_status", $_fake_status);
- }
- add_action("plugins_loaded", "acme_hucommerce_spoof_license_status");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement