🎉 Entrepreneur's Day Sale - Get 26% OFF on All Plans – Limited Time Only! Use Code
Functions reference

lmfwc_activate_license()

Estimated reading: 1 minute 2511 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
👋🏻 Hello Mate
Need help in License Manager
Support Bot Online
Support Bot
Hi! 👋 I'm Support Bot. Ask me anything!
15:16

Provide the details

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.