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

lmfwc_add_license()

[php]
function lmfwc_add_license(string $licenseKey, array $licenseData)
[/php]

DESCRIPTION

Adds a new license to the database.

PARAMETERS

$licenseKey (string) (Required)
The license key being added.

$licenseData (array) (Optional)
Key/value pairs. The keys must match the license table columns names.

RETURN VALUE

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

SOURCE CODE

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

Was this article helpful to you? Yes No

How can we help?