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.


Top ↑

Return Return

(boolean) True if option value has changed, false if not or if update failed.


Top ↑

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 );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.