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

Activates the license with the plugin store.


Parameters Parameters

$product_id

(string) (Required) The post ID of the download on inventorypresser.com.

$license_key

(string) (Required) The license key sold to the user.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/addon/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;
		}