Open yonifre opened 2 years ago
Have you modified lmfwc core file following this doc? This modification is required for expired license to be synced between client and server.
Hey, I did it now, It is still not deactivated the license automatically.
When I tried to manually deactivate the license on the client site, I got an error: Your license has expired. Renew your license first.
Since your license has expired before modifying lmfwc core file, the license status couldn't be synced. Due to this, there is no link between the license data saved on server and the license data saved on client.
For now, you can give this code a try (read below notes & guides first):
// On functions.php or any other pluggable file.
$workable_tag = 'admin_notices';
$workable_tag = 'admin_init';
add_action( $workable_tag, array( $client, 'check_license_status' ) );
$client
is an object instantiated from the TheWebSolver\License_Manager\API\Manager
class.$client->check_license_status()
.
Do the following:
There is still a chance that it might not work (let me know how it goes).
$client->run_scheduled_task()
.Sorry but the code give me en Php fatal error, Can you advice?
The license expired already but on the client site it still looks active, when I tried to manually deactivate the license on the client site, I got an error: "License Key is now 401."