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_License::api_response( string $action )

api_response


Description Description

Retrieves the license activation response from the plugin store.


Top ↑

Parameters Parameters

$action

(string) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-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 );
		}