1. Home
  2. Docs
  3. INTERNAL API
  4. Functions reference
  5. lmfwc_activate_license()

lmfwc_activate_license()

[php]function lmfwc_activate_license(string $licenseKey)[/php]

DESCRIPTION

Activates a license if it has not already reached its maximum activation count.

PARAMETERS

$licenseKey (string) (Required)
The license key to activate.

RETURN VALUE

(bool|LicenseManagerForWooCommerce\Models\Resources\License)
License model on success, false on failure.

SOURCE CODE

/includes/functions/lmfwc-license-functions.php#343

Was this article helpful to you? Yes No

How can we help?