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_url( string $action, string $product_id, string $license_key )

Creates a URL to the plugin store where this license can be renewed.


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.


Top ↑

Return Return

(string) A URL


Top ↑

Source Source

File: includes/addon/class-addon-license-validator.php

		private static function api_url( $action, $product_id, $license_key ) {
			return sprintf(
				'https://inventorypresser.com/?edd_action=%s&item_id=%s&license=%s&url=%s',
				$action,
				$product_id,
				$license_key,
				rawurlencode( home_url() )
			);
		}