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

lmfwc_update_license_meta()

[php]function lmfwc_update_license_meta(int $licenseId, string $metaKey, mixed $metaValue, mixed $previousValue = null)[/php]

DESCRIPTION

Updates an existing license meta entry. If the meta key doesn’t already exist, a new row in the database table will be added. If the $previousValue parameter is passed, the meta entry with that value will be updated.

PARAMETERS

$licenseId (string) (Required)
The ID of the license key.

$metaKey (string) (Required)
Name of the meta entry.

$metaValue (mixed) (Required)
Value of the meta entry.

$previousValue (mixed) (Optional)
The previous value of the meta entry.

RETURN VALUE

(bool)
True on success, false on failure.

SOURCE CODE

/includes/functions/lmfwc-meta-functions.php#107

How can we help?