havi22
New member
- Nov 19, 2020
- 8
- 6
- 3
Hi
So, do you mean to change this code instead of:
function perfmatters_install()
function perfmatters_version_check()
function perfmatters_uninstall()
??????????????????????????????????
Thanks!
plugin has a typo on line 18 of perfmatters.php a ] character.
also the nulling method they are doing is bad, it inserts into database the license every single request... bad for performance..
its better if you just change the functions.php file 3 last functions to:
function perfmatters_activate_license() {
/*
$l = new \stdClass;
$l->success = true;
$l->license = 'valid';
$l->item_id = '666';
$l->item_name = 'perfmatters';
$l->checksum = 'dcd4dc4dd1f04000afd42aa14223b6e9';
update_option('perfmatters_edd_license_status', $license_data->license);
update_option('perfmatters_edd_license_key', 'YOU-MAK-MEA-SAD-PAN-DAH');
*/
}
function perfmatters_deactivate_license() {
}
function perfmatters_check_license() {
//object(stdClass)#2800 (5) { ["success"]=> bool(false) ["license"]=> string(7) "invalid" ["item_id"]=> bool(false) ["item_name"]=> string(11) "perfmatters" ["checksum"]=> string(32) "dcd4dc4dd1f04000afd42aa14223b6e9" }
//grab existing license data
$l = new \stdClass;
$l->success = true;
$l->license = 'valid';
$l->item_id = '666';
$l->item_name = 'perfmatters';
$l->checksum = 'dcd4dc4dd1f04000afd42aa14223b6e9';
//update_option('perfmatters_edd_license_key', 'YOU-MAK-MEA-SAD-PAN-DAH');
return $l;
}
Hi mate, I think in the last version is not working or maybe I don't find exactly where to insert it:plugin has a typo on line 18 of perfmatters.php a ] character.
also the nulling method they are doing is bad, it inserts into database the license every single request... bad for performance..
its better if you just change the functions.php file 3 last functions to:
function perfmatters_activate_license() {
/*
$l = new \stdClass;
$l->success = true;
$l->license = 'valid';
$l->item_id = '666';
$l->item_name = 'perfmatters';
$l->checksum = 'dcd4dc4dd1f04000afd42aa14223b6e9';
update_option('perfmatters_edd_license_status', $license_data->license);
update_option('perfmatters_edd_license_key', 'YOU-MAK-MEA-SAD-PAN-DAH');
*/
}
function perfmatters_deactivate_license() {
}
function perfmatters_check_license() {
//object(stdClass)#2800 (5) { ["success"]=> bool(false) ["license"]=> string(7) "invalid" ["item_id"]=> bool(false) ["item_name"]=> string(11) "perfmatters" ["checksum"]=> string(32) "dcd4dc4dd1f04000afd42aa14223b6e9" }
//grab existing license data
$l = new \stdClass;
$l->success = true;
$l->license = 'valid';
$l->item_id = '666';
$l->item_name = 'perfmatters';
$l->checksum = 'dcd4dc4dd1f04000afd42aa14223b6e9';
//update_option('perfmatters_edd_license_key', 'YOU-MAK-MEA-SAD-PAN-DAH');
return $l;
}
So, do you mean to change this code instead of:
function perfmatters_install()
function perfmatters_version_check()
function perfmatters_uninstall()
??????????????????????????????????
Thanks!