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 )


Description Description

Retrieves the license activation response from the plugin store.

Top ↑

Parameters Parameters


(string) (Required)

Top ↑

Return Return


Top ↑

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