Advertisement
simkoG

hucommerce

Aug 7th, 2023 (edited)
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Activate Hucommerce Pro modules. Sorry Surbma :(
  4.  *
  5.  * @since 1.0.0
  6.  * @return void
  7.  */
  8.  
  9. function acme_hucommerce_spoof_license_status()
  10. {
  11.     $_fake_status = [
  12.         "last_check" => time(),
  13.         "status" => "active",
  14.         "success" => true,
  15.         "unlimited_activations" => true,
  16.         "total_activations_purchased" => 10000,
  17.         "total_activations" => 1,
  18.         "activations_remaining" => 9999,
  19.         "activated" => true,
  20.     ];
  21.  
  22.     add_option("surbma_hc_license_status", $_fake_status);
  23.     update_option("surbma_hc_license_status", $_fake_status);
  24. }
  25.  
  26. add_action("plugins_loaded", "acme_hucommerce_spoof_license_status");
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement