LLMS_Helper_Keys::add_license_key( string $activation_data )
Add a single license key
Parameters Parameters
- $activation_data
-
(string) (Required) Array of activation details from api call.
Return Return
(boolean) True if option value has changed, false if not or if update failed.
Source Source
File: libraries/lifterlms-helper/includes/class-llms-helper-keys.php
public static function add_license_key( $activation_data ) { $keys = llms_helper_options()->get_license_keys(); $keys[ $activation_data['license_key'] ] = array( 'product_id' => $activation_data['id'], 'status' => 1, 'license_key' => $activation_data['license_key'], 'update_key' => $activation_data['update_key'], 'addons' => $activation_data['addons'], ); return llms_helper_options()->set_license_keys( $keys ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |