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.



(string) (Required) One of 'activate_license' or 'check_license'.


(string) (Required) The post ID of the download on


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




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