Inventory_Presser_Addon_License_Validator::activate( string $product_id, string $license_key )
Activates the license with the plugin store.
Contents
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.
Return Return
(bool)
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; }
Expand full source code Collapse full source code View on Github