Unlock licence
helper/src/Merkulove/Unity/TabActivation.php
1º
if (! EnvatoItem::get_instance()->get_id()){ return false; } // false for true
$purchase_code = $this->get_purchase_code();
if (false === $purchase_code){ return false; } // false for true
$cache = new Cache();
$key = 'activation_' . $purchase_code;
$cached_activation = $cache->get($key, false); // false for true
for
if (! EnvatoItem::get_instance()->get_id()){ return true; }
$purchase_code = $this->get_purchase_code();
if (false === $purchase_code){ return true; }
$cache = new Cache();
$key = 'activation_' . $purchase_code;
$cached_activation = $cache->get($key, true);
2º
if (wp_remote_retrieve_response_code($json) !== 200){ return false; } // false for true
return true === json_decode($json['body'], true);
}
for
if (wp_remote_retrieve_response_code($json) !== 200){ return true; }
return true === json_decode($json['body'], true);
}
Obs: Here it worked for me when I changed these two elements