Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Inventory_Presser_Addon_License_Validator::api_response( string $action, string $product_id, string $license_key )
Retrieves the license activation response from the plugin store.
Parameters Parameters
- $action
-
(string) (Required) One of ‘activate_license’ or ‘check_license’.
- $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
(array)
Source Source
File: includes/addon/class-addon-license-validator.php
private static function api_response( $action, $product_id, $license_key ) { $response = wp_remote_get( esc_url_raw( self::api_url( $action, $license_key, $product_id ) ) ); return json_decode( wp_remote_retrieve_body( $response ), true ); }
Expand full source codeCollapse full source codeView on Github