lmfwc_add_license()

function lmfwc_add_license(string $licenseKey, array $licenseData)

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


Stuck or need help? Let us know!Updated on: 12.06.2021