Inventory_Presser_Addon_License_Validator::activate( string $product_id, string $license_key )

activate


Description Description

Activates the license with the plugin store


Top ↑

Parameters Parameters

$product_id

(string) (Required)

$license_key

(string) (Required)


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-addon-license-validator.php

		public static function activate( $product_id, $license_key )
		{
			$response = self::api_response( 'activate_license', $product_id, $license_key );
			return isset( $response->license ) && 'valid' == $response->license;
		}