EDD_LICENSING_ENDPOINT
EDD_LICENSING_ENDPOINT = 'https://barn2.com/edd-sl' : string
This class provides an interface to the EDD Software Licensing API. API requests are handled on the Barn2 website by the EDD Software Licensing plugin.
$_instance : \Barn2\WRO_Lib\Plugin\License\EDD_Licensing
activate_license(string $license_key, integer $item_id, $url) : \Barn2\WRO_Lib\Plugin\License\stdClass
Activate the specified license key.
Returns a stdClass
object containing two properties:
string | $license_key | The license key to activate. |
integer | $item_id | The download ID for the item to check. |
$url |
The result object (see above).
deactivate_license(string $license_key, integer $item_id, $url) : \Barn2\WRO_Lib\Plugin\License\stdClass
Deactivate the specified license key.
Returns a stdClass
object containing two properties:
string | $license_key | The license key to deactivate. |
integer | $item_id | The download ID for the item to check. |
$url |
The result object (see above).
check_license(string $license_key, integer $item_id, $url) : \Barn2\WRO_Lib\Plugin\License\stdClass
Checks the specified license key.
Returns a stdClass
object containing two properties:
string | $license_key | The license key to check. |
integer | $item_id | The download ID for the item to check. |
$url |
The result object (see above).
get_latest_version(string $license_key, integer $item_id, $url, string $slug, boolean $beta_testing = false) : \Barn2\WRO_Lib\Plugin\License\stdClass
Gets the latest version information for the specified plugin.
Returns a stdClass
object containing two properties:
string | $license_key | The license key. |
integer | $item_id | The download ID for the item to check. |
$url | ||
string | $slug | The plugin slug. |
boolean | $beta_testing | Whether to check for beta versions. |
The result object (see above).