class license_service implements license_service_interface

internal  
 

License Service.

Handles API communication with the licensing server (WooCommerce Software License).

Constants

API_VERSION

APP_URL

APP_VENDOR

APP_UNIQUEID

Methods

array
activate_license()

Activate the configured license key.

array
deactivate_license()

Deactivate the configured license key.

array
check_license_status(bool $force = false)

Check license status against the remote server.

array
check_plugin_update()

Check for plugin updates tied to the license key.

array
get_plugin_information()

Retrieve plugin metadata from the licensing server.

array
check_theme_update()

Check for theme updates tied to the license key.

bool
get_code_version()

Fire-and-forget check for code integrity.

Details

at line 50
array activate_license()

Activate the configured license key.

Return Value

array

Exceptions

JsonException

at line 62
array deactivate_license()

Deactivate the configured license key.

Return Value

array

Exceptions

JsonException

at line 74
array check_license_status(bool $force = false)

Check license status against the remote server.

Parameters

bool $force

Return Value

array

Exceptions

JsonException

at line 105
array check_plugin_update()

Check for plugin updates tied to the license key.

Return Value

array

Exceptions

JsonException

at line 124
array get_plugin_information()

Retrieve plugin metadata from the licensing server.

Return Value

array

Exceptions

JsonException

at line 136
array check_theme_update()

Check for theme updates tied to the license key.

Return Value

array

Exceptions

JsonException

at line 148
bool get_code_version()

Fire-and-forget check for code integrity.

Return Value

bool

Exceptions

JsonException