Update License property by code
-
Hi there
Im trying to update productId by code after the license was created, from my own plugin.
I tried the follow method but no luck:
====================================================
use LicenseManagerForWooCommerce\Repositories\Resources\License as LicenseResourceRepository;
defined(‘ABSPATH’) || exit;
function example()
{
$product_id = 11;
$license_id = 89;
$updateData = array(“productId” => $product_id);
$updatedLicense = LicenseResourceRepository::instance()->update($license_id, $updateData);
}
====================================================Any hint? Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Update License property by code’ is closed to new replies.