Winter Sale Is Here
Exclusive Discount on Lifetime Plans
hrs
min
sec

Save up to 75% on Lifetime Plans – Limited Time Offer, Don't Miss Out!

Functions reference

lmfwc_activate_license()

Estimated reading: 1 minute 2097 views
[php]function lmfwc_activate_license(string $licenseKey, array $args = [])[/php]

DESCRIPTION

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

PARAMETERS

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

$args (array) (Optional)
Optional arguments for activation.

-token (string) (Optional)
Token for reactivation.

-source (string) (Optional)
Activation source.

-label (string) (Optional)
Custom label for activation.

-meta_data (array) (Optional)
Additional metadata.

RETURN VALUE

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

SOURCE CODE

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

Share this Doc

lmfwc_activate_license()

Or copy link

CONTENTS
Scroll to Top
license manager plugin
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.