__construct() __construct(\Barn2\PPC_Lib\Plugin\License\License $license, $is_woocommerce) Parameters \Barn2\PPC_Lib\Plugin\License\License $license $is_woocommerce
process_license_action() process_license_action() Process a license action from the plugin license settings page (i.e. activate, deactivate or check license)
save_license_key() save_license_key(string $license_key): string Save the specified license key.If there is a valid key currently active, the current key will be deactivated first before activating the new one. Parameters string $license_key The license key to save. Returnsstring —The license key.
add_settings_message() add_settings_message( $sucess_message, $error_message, $success = true) Parameters $sucess_message $error_message $success
get_license_description() get_license_description(): string Retrieve the description for the license key input, to display on the settings page. Returnsstring —The license key status message
license_action_button() license_action_button( $input_name, $button_text) Parameters $input_name $button_text