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::api_response( string $action )
api_response
On This Page
Description Description
Retrieves the license activation response from the plugin store.
Parameters Parameters
- $action
-
(string) (Required)
Return Return
(void)
Source Source
File: includes/addon/class-addon-license.php
private function api_response( $action ) { $response = wp_remote_get( esc_url_raw( $this->api_url( $action, $this->license_key, $this->product_id ) ) ); return json_decode( wp_remote_retrieve_body( $response ), true ); }
Expand full source codeCollapse full source codeView on Github