Class prdd_license
This class is used to activate the license key which will receive on the purchase of product delivery date plugin.
Author: Tyche Softwares
Since: 1.0
Located at prdd-license.php
Methods summary
public static
|
#
prdd_get_edd_sample_license_page( )
This function add the Activate License submenu under the Product Delivery Date menu. |
public static
|
#
prdd_edd_sample_register_option( )
This function will store the license key in database of the site once the plugin is installed and the license key saved. |
public static
|
#
prdd_edd_sample_activate_license( )
This function will check the license entered using an API call to store into the website. And if it's valid then it will activate the license. |
public static
|
#
prdd_edd_sample_deactivate_license( )
Illustrates how to deactivate a license key. This will decrease the site count. |
public static
|
#
prdd_edd_sample_check_license( )
This illustrates how to check if a license key is still valid. The updater checks this, so this is only needed if you want to do something custom. |
public static
|
#
prdd_get_edd_sanitize_license( String $new )
This function checks if a new license has been entered or not. If yes, plugin must be reactivated. |